I was paid less than someone doing the same job at the same company as I was many years ago. When there were layoffs, one of the reasons they kept me instead of him was that I was cheaper.
I understand you're the sole tech guy at your company, but the same dynamic may apply.