Oh man you are having a hard time with English aren't you.
"Returns a string with backslashes before characters that need to be quoted in database queries"
There is no word "also" in that sentence. Read this sentence. Can you, in your judgement, not infer that somehow this function is related to database queries?
The point is, of course, that the inferences the documentation makes to database queries is pragmatically correct for certain proprietary extensions to databases like MySQL (which is crippled anyway), but is not right in the theme of open source, which is "do it right".