A lot of gnats love the smell of rotten food. It is their main choice as a place to breed and eat. This is why you see them often around your garbage bins and sink drains. Most likely, they are busy laying eggs there. Also, they seem to like over watered ..