Joyce Carol Oates said this quote

For writing is a solitary occupation, and one of its hazards is loneliness. But an advantage of loneliness is privacy, autonomy, freedom.