They shut down when the grid power is too high to try and keep things under control (prevent the voltage being pushed higher). They shut down when the grid loses power to prevent them energising a disconnected part of the grid and electrocuting a linesman (islanding).
Before Western Power got their **** together here (around 2012/13), we used to see surges up to 270V on a hot summers day with fast moving cloud cover.

