A wireless charger is two coils and Faraday's law. The pad drives an alternating current through its coil, part of that coil's changing magnetic flux threads the coil in the phone, and the changing flux drives an EMF there. Lift the phone and the flux that reaches it falls off fast, eventually as the cube of the distance.