Selling any smartphone without an essential part of it is already illegal under BR laws. It's the same as selling an air conditioner (or TV) without a remote control, a car without wheels... The law says if the accessory is essential to said product, which wired headphones ARE NOT, you can't even sell. Period. If Apple disagrees with that, it can appeal or do business elsewhere...
Companies don't have unlimited freedom to do as they please, it's just like planned obsolescence, which they were sued for. Did you know the same Consumer Code which determined that for Apple chargers specify it's illegal to put any product in the market and don't continue to make replacement parts available for as long as the product in question is still being manufactured or imported?
Even when production or importation is halted, the offer of replacement parts must be maintained for a reasonable time period, in the "form of the law". For how long? There's a decree that states this to never be inferior to the product's life expectancy.
If the law is obscure about this, due to not telling us how many * YEARS *, then past court decisions can be used or we may have an individual evaluation of each case. To me, it's not reasonable for a company that earns so much money (since everything they sell is so expensive) to use a lame excuse just to make more profit, considering that if you buy the charger after you get the iPhone, you are shipping it, too, and probably not contributing to "save the planet", which would be the case if they were sold together.
Apple in this case is assuming they are only selling to repeat customers, and this is false. Even if that were the case, you would probably not sell your used phone without a charger.