Cockroaches are attracted to food, water, and shelter. They are particularly drawn to warm, humid environments like kitchens and bathrooms where they can easily find sources of food and water.