The sprinklers must have come on inside the tavern. They were rigged up to some kind of device on the front of the building: water rushing through the sprinkler pipes turned a little wheel that smacked the bell, sounding the alarm even when electrical power was shut off.