People also get old advice that no longer applies. "Stay with a job, arrive early, go the extra mile and they will reward you down the road!"
In these sort of things, your direct manager probably doesn't even know what you make. There is a tight pay band set by HR and virtually no room for differentiation between employees. There is no mechanism in most roles to truly be rewarded for going the extra mile. The only surefire way to increase your takings is to be active in the employment marketplace and always looking for a better deal.
Working for someone is like this old Seinfeld bit[0], if you want to be rewarded you have to get someone to agree to it before you do the work, once the project is delivered and they are satiated they won't be feeling as generous. "We don't need labor now why are we giving this guy a raise?"