Because big-oh gives an upper bound. Your first function is also O(n^3), O(n^4), O(n^2012) , etc.
The definition of big-oh basically says that f(n) is O(g(n)) if there exists some k such that for all n > k we have g(n) > f(n) .
Check out big-theta for stronger / narrower boundaries.
Ivlad source share