You'd be amazed at all the ways flies or bugs in general can get in.
Ventilation fans, water drain pipes, holes hidden behind loose skirting boards, ex-girlfriends, etc.
Generally though if you went from 0 to 6 all at once, there's a possibility they hatched indoors.