When engine powered vehicles first started out it made some sort of sense to compare their output to something that people generally knew: the output of a horse.
It's impossible to add up all the indirect environmental costs of a windmill, but a good proxy for this arithmetic is simply to compare the resources consumed (in dollars) with the output produced (in dollar value of the electricity).