By removing the charger from the package, you may have to buy a charger that comes in its own packaging. Net new waste.
Including the charger in the package was actually the best way to prevent additional waste.
Moreover, an iPhone box is potentially an item people will not throw out, while the charger packaging is.