This isn't a great answer, but especially in tech, the barrier of finding another job (i.e. the interview process) is so high, that it's not worth the additional stress + time commitment to really look for place that has equivalent pay.
When your stressed out by work, interviewing just piles on the stress and can decrease performance.