Well, if you are depressed then it's no wonder you did. I've personally always interpreted this as a brain's way of escaping from horrible situations.
What I find interesting is how much animals sleep. When they don't hunt for food and shelter, they mostly sleep. Do they subconsciously want to escape this existence too?
Sorry if this is confusing, I'm not comparing you to an animal, it's just that I've always wondered this about them and if existence is unbearable by nature. Anyways, I hope you'll feel better :)