The answer to 'what attracts rat' is that rats are attracted to readily available food sources, nesting materials, and shelter. Rats are omnivores and will eat almost anything, including pet food, crumbs, garbage, and even insulation. They are also attracted to clutter, wood piles, and other areas that provide warm, dark nesting spots. Rats can squeeze through very small openings, so even small cracks and holes in a home's exterior can provide entry points.
To prevent rats, it's important to eliminate food sources by properly storing food and keeping the home and yard clean and clear of clutter. Sealing any cracks or holes larger than 1/4 inch can also help keep rats out. If you suspect a rat infestation, it's best to call a professional pest control technician, as they have the expertise and equipment to safely and effectively remove the rats and prevent future infestations.