I wouldn't be surprised if there's a financial motive. Newspapers will pay a fortune for a good story, and it can be very tempting.
I think that sadly happens a lot. Not only medical institutions but also at banks, the tax office etc. I remember a case from 2022 in the Netherlands where a 23 y/o employee of the mental health services was found guilty & was sentenced for searching for information of friends, family and celebrities. It seems rather curious that people risk their carreer for this (apart from having no moral hesitations about the matter).
Of course, others may simply be curious, and have no intention of cashing in.