Sometimes you get scared and need to sleep in somepony else's room. It's okay. It happens to everypony. Sometimes, it even happens to everypony all at once.
When it does, excessive cuddling ensues...
Takes place during season 1 because it wouldn't make sense anywhere else.