Lightning Arrester is placed near the equipment that is to be protected. Since the Power Transformer is generally most important and most expensive equipment in a switchyard/substation. So it's protection is prioritized. So at both ends of transformer (High & Low Voltage Side) surge arresters are provided.