The answer depends on the building laws in effect now and at the time the building was constructed. For example in locations that adopted the International Building Code 2006 version-
Rooms or Areas with stationary storage battery systems having a liquid capacity of more than 100 gallons used for facility standby power, emergency power or uninterrupted power supplies are required to be separated from Group E (educational) Occupancies by a fire barrier with a 2-hour fire-resistive rating.
Small electrical rooms with distribution panels do not typically require one-hour construction. As the increasing requirements for automatic sprinkler protection increase the number of locations that require the fire-rated construction decreeases.
In the National Electrical Code (NFPA 70) vaults containing conductors and equipment over 600 volts are required to have walls, roofs, floors and doorways with a minimum of 3-hour fire-resistive construction.
In the National Electrical Code (NFPA 70) dry-type transformers of more than 112-1/2 kVA installed indoors shall be separated from the rest of the building by one-hour fire-rated construction.
In the National Electrical Code (NFPA 70) rooms with Information Technology equipment shall be separated from the rest of the building by fire-resistant-rated walls, floors, and ceilings.
In the National Electrical Code (NFPA 70) wiring for emergency systems shall be protected by an automatic sprinkler system or one-hour fire-resistive construction.
In the National Electrical Code (NFPA 70) Equipment for sources of power as described in 700.12(A) through (E) where located within buildings above 23 m (75 ft) in height with any of the following occupancy classes — educational shall be installed either in spaces fully protected by approved automatic fire suppression systems (sprinklers, carbon dioxide systems, and so forth) or in spaces with a 1-hour fire rating.

