Formatted SQL is great for humans. But when you are embedding SQL in an API response, storing it in a log system that charges by the byte, or shipping it over a slow network, all that whitespace is just overhead.
A SQL minifier strips out every unnecessary space, line break, and indentation β producing a single-line query that is functionally identical but 40-60% smaller.