sink or bathtub does not necessarily remove the material accumulating deeper inside the drain.
Why Do My Drains Smell Bad? | Power Pro Plumbing
powerproplumbing.com
There are several common reasons why drain flies may begin appearing indoors:
Organic buildup inside drains: Hair, soap residue, skin cells, and other debris provide food and shelter for developing larvae.
Infrequently used drains: Floor drains, guest bathroom sinks, and unused showers may retain stagnant water or develop organic buildup.
Slow drainage: When water moves slowly, organic debris may have more opportunities to accumulate.
Leaking