HIPAA restricts what health insurers and providers do with your data, but it doesn't restrict third parties from attempting to get information that the covered entities aren't allowed to give.
See, for example:
https://www.forbes.com/sites/thomasbrewster/2018/03/22/yes-c...
Choice quote:
And it's entirely legal for police to use the technique, even if there might be some ethical quandaries to consider. Marina Medvin, owner of Medvin Law, said that once a person is deceased, they no longer have a privacy interest in their dead body. That means they no longer have standing in court to assert privacy rights.
Relatives or other interested parties have little chance of stopping cops using fingerprints or other body parts to access smartphones too. "Once you share information with someone, you lose control over how that information is protected and used. You cannot assert your privacy rights when your friend's phone is searched and the police see the messages that you sent to your friend. Same goes for sharing information with the deceased - after you released information to the deceased, you have lost control of privacy," Medvin added.
So, once again: if you're alive, you can assert your Fourth Amendment rights with respect to your phone. Police will need a warrant to search it. Once you're dead, the only person with standing to fight the search on Fourth Amendment grounds is, well, no longer standing. They can search warrantless.
I suspect it's probably because the exceptions to the rule bump privacy violations to the top of the news by a very vocal and outraged minority. But if you consider the magnitude of personal data the police must have access to on a daily basis that is kept secure and confidential and eventually destroyed compared to the occasional news story we hear about, they're doing a much better job than we give them credit for.
Also - as IT people, I bet the majority of us have access to a huge amount of personal data on a daily basis as well. I would absolutely say the majority of us treat this data with respect and circumspection and that only a tiny few don't.
Please don't mistake me for a police apologist, I'm well aware of their capabilities and actions, especially border police, but the polarising us vs them culture separates us and makes us disempowered victims. If you genuinely, honestly care about data privacy and the privacy of those you communicate with, use encryption.
Police training teaches officers to try to elicit evidence of criminal behavior in every interaction with the public.
An officer is always, always, always, trying to find evidence that you have committed a crime any time they are talking to you, observing you, or searching your property. Every interaction with a police officer is an adversarial encounter.