Yeah, there’s 8760 hours in a year.
Some are at night, in case you didn’t notice.
That has been accounted for in the calculation. The factor takes into account night hours (where no energy is produced, at all). The factor takes into account the physical location (latitude and longitude) of the facility.