Your question is really not defined.
Why do we do anything? :D
What language are you after? The function is used to print something to the standard output. So the why is that you want to write something on the standard output. :)
For reference on how to use the C printf function, please read this.