Buck-Boost Waveforms
Because it isn’t directly connected to the input voltage waveform but via a diode and, as the inductor charges, the current increases and the forward diode volt drop also increases thus, the inductor voltage has a downward slope.

As much as you may protest that the diode is supposedly ideal, it isn’t.