You seem to be describing ground sourced heat pumps. If you wanted, you could insulate a a chunk of foundation or earth to avoid heat loss. But just the ground under your building seems to work well enough.