It's been said that fruit flies prefer a moist environment because it's more like their natural home. They may also be able to lay eggs on the side of the sink and find shelter within plants or between rocks in your backyard, but they enjoy living near water sources, which is probably why you've seen them at your sink...