You may have mixed up the x-coordinate and y-coordinate. When the y-coordinate is 0, the point is located on the x-axis, not the y-axis.