Cockroaches are attracted to food, water, and shelter. They can enter your home through cracks and crevices, pipes, and vents. They may also be brought in on items such as grocery bags, boxes, and luggage. Once they find a suitable environment, they will reproduce rapidly, leading to a sudden appearance of cockroaches in your home.