This is due to historical tradition. The Egyptians and Romans divided the day into 12 daylight hours and 12 nighttime hours which is why today we have 12 am hours and 12 pm hours.