Hornets are attracted to sweet things like sugar or sugary drinks. They are also attracted to areas where insects are rife. As hornets feed on insects and take them back to their next (to feed their young), they will be attracted to areas where insects are prevalent.