For specific hypothetical example, it's not hard to imagine, that training users to prefer things like "experiences" or entertainment that need to be re-purchased is better that promoting physical goods, like board games or bicycles.
Yes, its to their benefit if their users have money. No, I don't think there's any chance that any company is able to optimize for someone gaining a middle-class life that meaningfully.
Companies do small-scale user studies and measure things like engagement and increased clicks on a small scale. They do not perfectly capture their user's income and spending level for many years and correlate that well enough with the company's auto-suggestions that said suggestions optimize for that very macro goal over the very micro measurements they make.
I think it's very hard to imagine Google successfully optimizing itself to meaningfully lead do that outcome for users, just as it's very hard to imagine humans evolving the ability to fly.
You can see it an example of early precursor of ML that shapes user behavior: learning what motivates user to return and then displaying it.