When the (gold, silver, or whatever) was no longer found on the surface (it was no longer easy to find - or, it gave out), they left. This happened quite often in the gold producing areas of California in the 19th Century. When the original miners left, companies with more sophisticated tools and techniques would come in and find the minerals that were below the surface.