If you have the sort of job where you can directly observe the financial benefits of what you do, and claim credit for them, then you are probably already earning more than PMs and BAs, or likely doing what they do as part of your wider software development responsibilities.
Most programmers, working together with BAs and PMs simply don't have access to the information that says how their efforts contributed to the bottom line. And they work in teams that often include those BAs and PMs, so even if they could make a direct link to increased company earnings etc, then it would be hard to justify claiming credit over anyone else in the team.
And in some cases a good PM deserves more than a programmer.
To get rich you need to get yourself in a situation with two things, measurement and leverage. You need to be in a position where your performance can be measured, or there is no way to get paid more by doing more. And you have to have leverage, in the sense that the decisions you make have a big effect.
Most programmers, working together with BAs and PMs simply don't have access to the information that says how their efforts contributed to the bottom line. And they work in teams that often include those BAs and PMs, so even if they could make a direct link to increased company earnings etc, then it would be hard to justify claiming credit over anyone else in the team.
And in some cases a good PM deserves more than a programmer.