It did the right thing.
If the EU moderates its act, and becomes more economic again and less politically controlling, it will be a more attractive entity. Britain could rejoin, couldn’t it?
But as it stands now, the EU is headed in a direction that is going to be hard for some of its members. Some will be screwed by immigration they didn’t agree to, some will be harmed economically. Greece gets it both ways.