J. P. Donleavy was an Irish-American playwright and novelist. The Ginger Man, banned for obscenity, was probably his most famous work. This quote is not from his book, but something he said about writing. “Writing is turning one's worst moments into money.“
That's exactly what a writer draws from—those uncomfortable, if not downright tragic, moments of life.