Wild animals stray into villages and farms because humans have taken their natural habitat. Deforestation is the reason responsible for wild animals moving into human areas.
They search for food and shelter, which leads them to move into places that people live.