Wind and solar production forecasting, art or science?

Historically, generation forecasts for wind and solar projects have overestimated the resource. What is the reason for this excessive optimism?