The USB-C port can also charge iPhone and iPad, and you can bring one less charger when going out. This change's benefit is increased versatility. From Macbook Pro 2016 and Macbook Air 2018, Apple switched to the USB-C interface.
Before the popularization of USB-C interface, both Macbook Air and Mabook Pro used Magsafe as shown below.