Yeah, exactly. In France, getting a "baccalauréat général" (the high-school diploma leading to university studies) is optional, and not everyone does it. Just like AP tests are optional in the US.
There are two main differences.
Firstly, in France, this choice is available to everyone. Every student is able to go to a high school that offers it. It is not some unusual special thing that exists in rich neighborhoods.
Secondly, for people not enrolled in it, there are meaningful vocational options (bac technologique, bac professionel...), so they are still doing something useful. Contrast this to the US system, where your choice is between semi-serious academic work that kinda sorta approximates a European standard, and non-serious, waste of time babysitting.
This is because there's, for the most part, only one type of high school in the US. It's not split into academic vs. vocational. The US is one of the only countries in the world like this. I believe it expresses the idea that everyone has the ability to succeed if they try hard enough, so we shouldn't be sorting people into more and less prestigious tracks. This is a false myth, but it's so deeply implanted in the bedrock of American culture that saying common-sense things like "it's possible to figure out who the good students are well before age 18, and allocate resources appropriately" shocks a lot of people.