well at the surface level it might seem a bit strange, but when thinking a little bit about it, it makes total sense. your buddy can simply only deliver so many packages and letters in a day, impacting a few hundred people or so. Sure, its valuable, and required, but still.
You can write software that millions that each are enriched as much, possibly more than the package delivery your friend does. As such, you simply can command a much higher salary