In many cases, mathematics is an escape from reality. The mathematician finds his own monastic niche and happiness in pursuits that are disconnected from external affairs. Some practice it as if using a drug.
"Adventures of a Mathematician". Book by Stanislaw Ulam, 3rd edition. Chapter 6: "Transition And Crisis", p. 120, 1991.