Erwin lost the best part of 2 seasons to 2 injuries and done well to recover. With that history, you can't blame him taking a big money offer, particularly to a club with the history and fan base of Leeds.
A few months in League 1 could do him and Leeds the world of good. If he stays fit and keeps his head screwed on, he'll undoubtedly play for Scotland one day.