What if the company pays 100k for your extra education in some specific niche field, and you then quit and get a 50k starting bonus at a competing company, that doesn't have to invest 100k for your education?
The answer is the same.
I guess you could get a job in the non-compete window, but only be trained by the next employer while the previous one paid. That seems complicated and silly though.