The maximum value of the cosine function is 1, and it occurs at the top of each hill in the graph. Perhaps you were looking at only the point , but there are other points where the function equals 1.