Why are rats attracted to my property?

Rats seek food, water, and shelter. They’re drawn to unsecured trash, food wastes, compost piles, and cluttered spaces like basements as it gives them the whole setup of having a safe environment near sources of food and water.