Is it really necessary to use huge boxes to send small parts?

Ordered a replacement USB port for the fairphone 5 of my girlfriend. Had to pick it up at a UPS servicepoint, because she was not home when the delivery company past by.

The delivery company couldn’t deliver it in her mailbox, because it was packaged in a large paperboard box. That large packaging seems very unnecessary. The part could have easily fitted in a small envelope. That would have been convenient for my girlfriend, but also more eco friendly, smaller packaging saves space in delivery vans and reduces waste. Also sending out in smaller envelopes can reduce the postage prices fairphone charges now…