Because sqrt is an example of a "good style" procedural function. It takes input, processes it, and returns the result.
The book does not say that you should write your own or copy the definition from the book (which is not fully implemented in any case). The book also does not show how to calculate the square root. It describes the purpose of functions in procedural programming (or what my interpretation is anyway).
source share