Those cheap power supplies are ubiquitous, so it's more about Apple building their cables to exist in the built environment than dealing with the fallout of consumers busting up their expensive phones by charging them on whatever's lying around.
Guarantee there was a consumer study where they compared reactions between these scenario.
The manufacturers knows that if it’s their product in contact when a user is shocked, they will get some blame even if it’s “really” the sketchy power supply’s fault. And since some cables have these safety features already, anyone making cables without them will appear extra negligent when bad things happen.
The world is unfortunately not very efficient.
There was already a huge installed base of cheap power supplies