Yes, that's the difference in the actions or thoughts of rich and poor people when they have money, you've explained everything OP and the trigger lies in a different mindset, I'm sure education and environment influence it, rich people have better education about money which makes them know how to manage money and spend it properly, rich people use money as a tool to achieve goals by using it for something that can grow, while poor people use money as a goal in itself such as to buy everything they want without thinking whether it can provide a return or not.
Basically, education and understanding given by parents can indeed cause significant differences in thinking and perspectives on money for a child, but there are also people who grow up in poor environments who can become rich, usually they are people who dare to get out of their comfort zone, dare to take risks and build many relationships, sometimes hanging out with rich people is important.
It only shows that poor people should not limit their socialization only for the poor only, but they have to set higher goals as well and mingle with rich people too, not only to gain influence, but also to imitate how these rich people are dealing in their successful lives.
That way, the poor will have a shift of mindset and interest. And the good thing is, they already have seen the future result if they will follow that, that they can also get rich in the future, as long as they have also the potentials to succeed on whatever their goal is.