Idioms are used in writing to add color, creativity, and cultural flavor to the language, making it more engaging and expressive. They have meaning beyond the literal interpretation of the words.