Houses had thatched roofs–thick straw, piled high, with no wood underneath.
It was the only place for animals to get warm, so all the dogs, cats and other small animals, mice, rats, and bugs lived in the roof.
During a large rainstorm, it became slippery and sometimes the animals would slip and fall off the roof–hence the saying