Because when the power does cut, how long is it going to take to get those generators up and running? It's not like the whole place can run on a battery backup in the meantime.
Backup uninterrupted power is not typically done by keeping generators online 24/7.
So every (serious) datacenter has rows and rows of batteries to cover the lag time between power loss and generator start-of-service.