The question isn't valid for 11AM vs 11:01AM, because crossing into 11:01AM doesn't put you into the afternoon like 12:01PM does. It's only a valid question at the transition time between AM and PM or vice versa. So, it was decided a LONG time ago to just skip the problem and say "twelve noon" or "midnight" (or "twelve midnight".)
12:00 noon is neither AM nor PM, and there'se no confusion.
The real question is why is the hour after midnight 12:01-12:59 AM.
Anyway, the real answer is that 0/12 and 13/1 are partial branch cuts and that "12" is used because "0" is awkward for mundane reasons, but retains some of its "0-ness"
Any potential for confusion results from an ancient decision to designate noon/midnight as 12:00. If they had simply made them 1:00 instead then there'd be no trouble today.