Yep gnats are in every soil, even if you buy new soil from the store. They live in moist conditions, what you can do is treat the soil with 1 parts hydrogen peroxide and 3 parts water, water the plants with it, then place sand, then river rocks on top, that way it the gnats ever return they will...