In BMTC buses of Bangalore they had this hammer in open to break glass in case of emergency-after a few days the hammers themselves became an emergency(Somebody took them away)-so probably Railways went ahead further to keep it in glass box so that hammer doesnt get lost