At dusk, temperatures go down, humidity rises, and winds calm. That means the three things that keep mosquitoes from annoying you during the daytime subside.
Why are mosquitoes worse around outdoor lights at night?
Mosquitoes aren't strongly attracted to light itself the way moths are. But outdoor lights draw other insects that create activity around the light, and the heat and CO2 from nearby people are what pull mosquitoes to lit gathering areas.
If you want to stop ants from getting into your kitchen, you can do this by sealing entry points and eliminating food and water sources. It also helps to disrupt the scent trails ants use to navigate.