Wind and solar need a lot of resources from mining, which itself uses fossil fuel (for extraction, treatment and transport) and creates a lot of local pollution.
Wind and solar take a lot of space that could be used for agriculture, so they compete with important uses of the soil. (I don't know if it's clear how much offshore is a thing, but I suppose this increases also energy expenditure)