I think they must emerge from larvae from stagnant water, over-wintering in a pond maybe ?.
I've sometimes noticed them hovering in a small cloud above a drain cover.
What amazes me, is that they never seem to get knocked down by rain drops!. I think it's the air pressure around a rain drop that pushes the gnat out of the way, rather than the gnat dodging the drop.