Because you use the masculine word when you speak about a point in time. 2 o'clock = la ora doi, 12 o'clock = la ora doisprezece. But oră IS a feminine word so when you are counting hours its different: 2 hours = două ore, 12 hours = douăsprezece ore.