I am not sure why Ubuntu and Debian don't remove old kernels when new ones are installed. However, if you want to free up some space on your system without affecting it, you can run the following command in the terminal:
sudo apt autoremove --purge
You can run this command before/after upgrading the kernel to keep disk usage a bit low.