This is one of the future scenarios of how AI deals with its humans. Instead of milking cows, need to keep the humans happy and fed so they mine minerals and build chips.
Maybe that is why the aliens are leaving us alone. We are doing a good job of collecting all the rare earth materials we can, refining them, and throwing them into a convenient landfill, all while we are creating a warmer, more energetic planet.