I work at Epic. This is not true. Hospitals have the ability to customize the portal we offer and add in what they want. We're not shipping with Meta Pixel enabled. They added this and didn't understand the full consequences (I hope). When we learned and understood the consequences, we called every customer to share what we know and investigate if they're impacted.
I can't speak to why the consequences weren't more obvious. I don't know. I do know that Epic cares deeply about this and I know that it pisses me off that this happens. But the tech people at hospitals are people and make mistakes. They're likely driven by the business needs and don't have time to fully vet everything.
I think this is a consequence of the American health system and want to implement these products to increase profitability.