In addition to loving you and, by default, your clothes, cats may choose to sleep in cupboards because they have safe, sturdy walls, they are dark, and they block out sound. For example, my cat sleeps in my whenever thunderstorms come.