Even if you switched suitable gate voltages to the Mosfets to turn them on or turn off, during the switching an upper Mosfet and a lower Mosfet will both be turned on for a moment, shorting the power supply and getting very hot, called "shoot-through current". Therefore a delay must be added so that one Mosfet turns off before the other Mosfet turns on.