The reason is that they find food, shelter, and water around your house. check what can attract them and eliminate those things.