The necessity of safe ejection or removal of hardware and media

Why is it necessary to remove safely hardware and eject media at all in computing? When I eject safely my pen drive from the USB port of my computer does it have any impact or sense? I am nine years of age and a student of a basic school in Ghana. My IT. teacher has always insisted that I safely remove any hardware that I slot into the USB port and I want to know why.
Thank you.
