The answer is Ohms law! The more power consumption by the laptop means that the power supply must produce more DC current. The process of producing this current ends up creating power losses in different forms via the processes that are required to produce the DC current. That lost power is converted to heat. More power used, more power lost, therefore more heat generated.Thank you everyone for the sensible help, I appreciate this community and I just got here!
While gaming yesterday, it didnt shut down but the power supply (it's a laptop) was quite a lot hotter than when working on less graphic intense tasks. Is it normal that a laptop power supply should be more hot while using heavier tasks on the computer?