You are right, the environment has a great influence on us. You need to strive to communicate with people who are richer than you and if it is correct to say, better than you, then you will strive to reach their level. This is normal behavior, we try to adapt to any society, no one wants to stand out much, if you get into a company of drinkers, you will also start drinking, if you communicate with people who lead a healthy lifestyle, then you yourself will try to become the same.
From what I've observed, rich people really interact and leave their comfort zone to find many opportunities to improve. Let's say they already rich or became rich, but they don't settle for less but they really find ways where they can improve themselves. They communicate with people have some connections for example like Mark Zuckerberg and Elon Musk. Their businesses doesn't stay for what is it, but its improving for many years.
On the other hand to poor, it's given that they are not financially stable but they kept thinking that they will remain the same like they work 24/7 but no changes. Some people mindset could really changed that fate with just proper planning and consistency. There's many people that I know where they started from nothing due to their hard work which results them to success. Its easily said than done but its already proven a lot of people demand more than they act.