The release of the 12 generation iPhone was quite unique as they did not include the charger and the earphones as an attempt to minimize the carbon footprint of the company. Elsewhere, this was accepted and Apple were going to deliver the phones without earphones, but France did not let this happen.
According to some regulations in France, mobile phone manufacturers are not allowed to sell their cellular devices without including earphones in the packaging. Apple has decided to comply with these rules and will deliver their latest mobile phones with the earphones.