- He made a great home investment, apparently bought cheap and later was able to rent it for a lot of money. This is good for him, but somewhat lucky (or, alternative, a spark of insight into real-estate)
- He made nice returns on stocks
Both are fine, but not a part of "corporate programmer salary"