An electric kettle can switch off for a few reasons.
The thermostat or internal sensor may detect the desired heated water temperature. In some cases, the kettle shutdown system can activate as boil-over protection and prevention.
The kettle's shutdown system also activates if it detects a malfunction or if there is a problem with the power supply.