That's actually not true, as I discovered when my wife died back in 2021, at least where I live (Canada).
The dead have the same right to privacy that existed when they were alive. I needed medical documents for life insurance purposes, and even though I was her next of kin, because she had not left a will naming me as her executor, I had to petition for letters of administration to be able to access her medical records.