These laws don't say you can't make better chargers, they say if you make a mass produced device from the provided categories and it's going to charge by cable you will need to make sure that it has at least one USB-C charging port.
Besides, this is only in EU(and India now). Sure, there's a Brussels effect but as you can see even with iPhone the companies can have multiple versions of a product. US iPhones don't have physical SIM cards anymore, the other have it. So if it happens that Apple invents significantly better charging port for the iPhone, they can sell those everywhere else in the world and EU can revisit the laws if there's an interest.