Losses arise from the power used to switch on and off the MOSFET, which is coupled to the gate driver of the MOSFET. Additionally, MOSFET power losses happen because switching between the conduction and non-conduction states requires a certain amount of time. The energy required to charge and discharge the MOSFET gate's capacitance between the threshold voltage and gate voltage results in losses as well.