That’s a testament of your capacity for empathy and being a decent human being. It sucks that you saw it, but it’d be more concerning if it didn’t fuck you up a little. That’s trauma you’ve picked up from witnessing their trauma…
It’s not unreasonable to talk to a mental health professional if you continue to feel troubled by this. There’s no shame in getting help if you need it.