Under a deck, it can be cooler and darker. It can be damper than the rest of the yard. Stored items can make it even better for them. Poor drainage can make it even better too. It can become a great place for mosquitoes to rest.
Why mosquitoes like the space
Decks block direct sun and wind. Damp soil can make the area safer for them. Thick plant growth can do the same. Stored items can do the same too.
Look for water, not just shade
Check tarps, toys, and planters. Check buckets, drains, and furniture covers. Check low spots too. Mosquitoes may rest under the deck. They lay eggs in water nearby. That water may be a few feet away.
What helps
Clear clutter where you can. Make drainage better where you can. Make airflow better where you can. Thin thick growth around the edges. The goal is to make the space less useful. Make it less useful for laying eggs. Make it less useful for resting.
Quick answer
Do mosquitoes have to lay eggs under the deck to be there?
No. They may just use it as a resting place. It is cool and protected there. That is why a good check looks for two things. It looks for standing water. It looks for shelter too.
Prefer to leave it to a crew? Here is how mosquito control in New Jersey works when Bite Back treats a yard.