There's no malicious encouragement to build wind power where it does not make sense.
But why are there subsidies anyway? Well, all forms of power are subsidised, nuclear power the most, and renewables and coal about to the same tune (in Germany). Also, the electricity price is very low in Germany. Often lower as in France. You know, neither coal plant operators nor wind power operators profit from the extremely high consumer price point. So even though wind power is the cheapest form of energy to produce (in Germany), even it can't break even all the times, which is a scary prospect for investors.