Many answers to this question. From an infected clone, from a pregnant bug that hitched a ride on your shoes, through an unsealed grow room, from the soil you bought at a grow store, from a buddy who had an infestation.
The real question is what do you plan to do if you have them.