Experiences differ. A lot. Personally, I had an awful time during my PhD, and between the penury and the toil and the bleak prospects afterward, I'd say you're definitely in the minority on this one.
I wouldn't recommend a PhD to anyone who isn't dead set on a job that requires one.
Do you have any evidence for the minority claim beyond the personal anecdote? Also, this is field dependent, so a mention of the field could be helpful.
As a second anecdote, I've never met anyone who's said getting their PhD was fun. (My building is ~95% PhDs from a range of different disciplines)
That said, CS PhDs are pretty lucky. The worst case fallback position of a job as a software developer isn't bad. It gets much worse for less commercial disciplines. God help the poor blighter with a PhD in Medieval Literature who doesn't snag an academic post.