Minecraft Weirdness

The follow picture is a building I have constructed in Minecraft. I sealed up the building when I created it. The only way inside is by going through doors you have to open (they are not automatic). My question is how do horses end up...