Pitless wells are constructed with the casing extending above ground surface, but the pump discharge pipe is installed below ground surface using a pitless adaptor. A pitless adaptor is a relatively new introduction into well construction and eliminates the need for pit wells and the hazards they can introduce.

Pitless Adaptor

Diagram Above: Pitless Adaptor. Source FDA.
In this video, you can see a pitless adaptor, the pump discharge pipe connects to the metal adaptor on the right side of the video.