Cockroaches are attracted to food sources, moisture, and warm shelter. Poor sanitation and clutter can increase the risk of infestation.