To be fair to those countries, it's typically ESA that barters with NASA, not the individual member countries. And it seems like astronauts are selected in rough proportion to national contribution (generally in line with the National Return policy).
Paying for a private seat may be a more efficient way for smaller countries to get people into space.