By allowing multiline strings without '+' operators.
Text blocks allow developers to write multiline strings without using the '+' operator to concatenate each line, which can become tedious and error-prone. This is especially beneficial for long JSON bodies or SQL queries, improving maintainability and reducing errors.
Additional Notes
How does using text blocks escape string concatenation hell?