Why? Because that warning is there to protect against people who have no idea about why extension cords can cause problems or be dangerous.You can certainly take precautions to be as “safe” as possible. But why be concerned with safety once you’ve disregarded the safety warning in the manual regarding extension cord use?
I have more than a little experience with and knowledge of electricity. When they tell you not to use an extension cord with all sorts of different devices, they are giving a warning to cover the most uninformed among us. There is absolutely nothing wrong with using an extension cord as long as: (1) the overall run between the circuit panel (or subpanel) and the device ultimately being plugged in is not longer than what code would allow and (2) the cord is of sufficient gauge and is grounded (grounded is necessary if the device being plugged in requires grounding).
The standard outlets in a house are mostly 15 amp, except for ones in the kitchen, bathrooms and maybe the garage. I have a few 20 amp outlets that I installed in my garage that are literally 2 feet from my circuit panel. The run of 12/2 wire to them is less than 4'. Twelve gauge solid wire (the type of wire in the cabling you run in a house) can carry 20 amps at up to 50' or 15 amps at up to 100'. So, if you don't have a very long run from your panel to the outlet you're plugging into, there's absolutely no reason that you can't use an extension cord. The electricity doesn't behave differently in an extension cord as opposed to the cabling in the wall (except that the stranded wire in extension cords can't carry quite as much amperage as far as the solid wire in cabling).
The real danger with extension cords, however, is when someone uses a cord with too-small a wire gauge to carry the load that's on it. It will heat up and could start a fire. If you're using a 12 gauge cord and keep it at 25' or under, you should be fine. If you use a 10 gauge, you're really fine. There's nothing inherently dangerous about extension cords. You just have to be mindful of their gauge and the amount of load you're putting on them. Stranded wire cannot carry as much amperage as solid cable, which is why I sometimes use a 15' 10 gauge extension cord with heavy motorized loads.
Wire is not some magical, unknown factor. If you use a heavy-gauge extension cord that isn't too long and it works, you're fine. If you're really concerned, use a meter to test the voltage at the end of the run where you'd plug your charger in. That will tell you if the voltage drop is too much for the charger to function properly.