To push the analogy, if you need a code to open your safe, but forgot to put the code in your will, is the manufacturer required to provide you a master key?
The deceased is expecting to make the necessary preparations before dying. Facebook has a system to let a user allow trusted user to takeover access, or let a user allow a group of friends to agree to takeover access; which both seem good methods of handling inheritance of account data.