The strange reasons medieval people slept in cupboards