the main reason for writing "X-mas" instead of Christmas is an attempt to distance the holiday from religion.
That's internet revisionist history.
The real reason was to save space in writing. "X" as an abbreviation for Christ is very common in Christianity, and has been for a couple of thousand years now.
Even Roman Catholic priests' robes have "ΧΡ" on them as an abbreviation for "Christ."†
† https://www.catholic.com/qa/what-does-the-symbol-of-the-p-wi...