Engines can overheat for many reasons. In general, it's because something's wrong within the cooling system and heat isn't able to escape the engine compartment. The source of the issue could include a cooling system leak, faulty radiator fan, broken water pump, or clogged coolant hose.
Hope it helps! Have a nice day or night!