Solar panels collect rays, so just like your skin can get burned on a cloudy day, the sun is still filling those panels with light that gets transformed to energy and voila! You get credit back from the power company.