I think it's important to remember that many of these "death bed" bits of wisdom are often the same or extremely similar to those found in deep psychedelic and religious experiences, meditation, so on.
As someone pointed out these are often also similar to the more "child like" thoughts that are not constrained by society and do very much so seem to be more of the things that actually do matter.