There is also SE which is a EU form for an AG, and various "partnership" forms that involve a partner that's fully liable. Usually, that partner is not an actual person but a "legal person", i.e. another SE or GmbH.
Even if you're not listed on a stock market, you might want to take on investments, e.g. "give me 10 million for 5% of the company" and I assume the latter is much easier with an AG.
Why Carl Zeiss is an AG I don't know. The West German Carl Zeiss was re-formed as a GmbH in 1946, but had changed to an AG by 1973. The East German Carl Zeiss was turned into a GmbH during reunification and then split in two. One part merged into the West German Carl Zeiss AG and the other is now called Jenoptik. Jenoptik was converted into an AG in 1996 and went public in 1998. AFAICT Carl Zeiss has been privately owned by the Carl Zeiss-Stiftung since 1889, except of course for the temporary East German part.
Here in Sweden we have A LOT of companies own and operated by state and local government and they’re all “aktiebolag” which literally translates to “stock companies”. For smaller businesses you can register as a sole proprietor and some other odd structures if you are a group of people. You’ll often see the same thing for non-profits as well.
In most entity types, this involves a lot of paperwork while its quite easy within an AG.
AG does not mean necessarily its publicly traded.