What does mean your "why"?!!! Can you use a human language?!
If you know the reverse function then what is the problem? Use it to reverse elements of an array and then print it.
It takes the first element of the array and the last element of the array and exchanges their values. Then it takes the second element and the element before the last and again exchanges their values and so on.