
Some large transformers have a lot of insulating liquid inside. If a serious failure starts a fire, a barrier can help protect equipment next to it from direct flame and heat. That can make it harder for a problem in one bay to spread to the next.
Why not put the transformers farther apart?
Space can also help limit the exposure. A station may have a limited footprint or existing equipment in the way. A barrier is one way designers deal with that while keeping the arrangement usable for maintenance.
Does the wall catch spilled liquid?
That is usually a different part of the design. A station can have a pad, pit, or other containment for liquid. The upright wall has the job of separating nearby equipment from heat and flame.
For more on why substation equipment is arranged the way it is, see Substation Systems.