In the uk you have to stay in some form of education till your 18. Most go to sixth form or college to do a levels or equivalents.
It varies country to country within the UK, I left school at 16 (My birthday is after summer) in Scotland because I sat my sqa highers (I think equivalent A-levels) and didn’t want to go to uni