The answer to 'what attracts wasp' is that wasps are attracted to a variety of food sources, including sweet and sugary items, ripe fruit, and proteins like meat or pet food. Wasps are also drawn to the scent of flowers, trash, and even the pheromones released by other wasps.
Wasps build their nests in sheltered areas like eaves, overhangs, trees, and shrubs. They may also nest underground or in wall voids. Seeing a few wasps around your home is a sign that a nest may be nearby, which can pose a safety risk, especially for those with allergies.