Often some countries buy small planes to train new pilots.
Russia produces excellent trainer jet Yak-130 for this purpose : https://en.wikipedia.org/wiki/Yakovlev_Yak-130
It’s not terribly expensive. Belarus is buying these planes. Not sure what is the purposes of buying MIG-21 other than to save a little bit of money.