The people believed that ghosts are small, little beeings. So they made there house entrys that one have to walk over a step into the house. This helped to left the ghosts outside the house.