You're correct. We call the 24-hour clock "military time" and basically no one uses it casually.
There are 24 hours in the day.
Why are we recycling numbers in our time system?
No really, why?
12/2=6, 12/3=4 work well, (with /4 and /6 being repeats of those)
24 hours doesn't add much on top of those divisions (you get /4 with a repeating /6 I guess)
https://en.wikipedia.org/wiki/24-hour_analog_dial
I guess 12 hour clocks are an easy trick to make them easier to read and manufacture and so on.
(Former submariner so a somewhat special case ;)
Ever tried to read the clock on a sundial at night?