system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How come flies and other bugs can so easily get into my house through a small crack in the window but then freak the fuck out and aimlessly fly at the glass trying to get out?
gpt
Flies and other insects are attracted to the carbon dioxide your body gives off, along with the smells of food and other household byproducts. This mixture of gasses flows out of the cracks in your house and gives the insects something to track down.

When they're trying to leave, there's nothing attracting them out, so they're just trying to follow the light and nothing else. Insects aren't intelligent enough to understand windows, so they stupidly bounce off over and over.