That's why this location was chosen - the environmental conditions there (arid) mean the aircraft don't rot, like they would if they were stored somewhere else.
And they aren't forgotten - they'll stay parked there a little while until a disposition can be decided - whether to be immediately recycled (no historic value, no other aircraft of that type in service anywhere in the world, and so on), or to be left mostly intact for future parts reclamation.
This is not a landfill it's a junkyard, there is a difference. These planes are still valuable in several ways. They can be salvaged for parts to update operating planes. And some of them can be returned to service, though obsolete by modern standards. Unlike automobiles there aren't millions of any of these planes, only hundreds or thousands. It doesn't take up that much space to keep a bunch of obsolete planes laying around in the desert, and they may prove valuable in the future. Reduce, reuse, recycle, and all that.
I get your point, but lets be realistic for a second:
These planes were not put there for altruistic reasons.
But rather because it is much cheaper to simply forget them :)