[1]: The most popular firmware, Marlin, has a feature called Thermal Runaway Protection which turned off the printer when it detected temperature has reached certain threshold. Prusa printers have TRP enabled by default, but some manufacture doesn't.
[2]: https://www.reddit.com/r/3Dprinting/comments/8ah96r/anet_a8_... this is about ANET A8, but flashing custom firmware with TRP disabled or with higher temperature limit may result in the similar situation (ANET A8 stock firmware don't have TRP enabled)