my (inexpert) theory is that a loss, a trauma, something just gone very wrong, destabilizes the self/body, so that one's sleep is immediately affected. insomnia is like an illness the anticipation of which--(anxiety)--is almost as bad as the illness.
from insomnia to desperation-to-sleep---this for many must be the crossing-over when one is most vulnerable to addiction.
(absolutely no doubt that this is what led Marilyn Monroe to "overdose"--- she just wanted desperately to sleep & took one sleeping pill too many.)
insomnia/sleep deprivation affects the brain in adverse ways immediately. it is no wonder that many people "self-medicate"--- my wonder is that there are not even more.