Look at it from this point of view; if your employer is so unhappy with you that, even when you’ve shown your skill, he’s unwilling to pay you a competitive amount then it’s clear you don’t really have a future at your current job.
A new company is willing to risk it on you, while paying more than your current job where you have experience. No surprise they leave in a year anyway.