Until you asked that question, I never really thought about it, I have some idea how they are turned, at various points.
But how the raw handle stock is shaped I dunno, for a light line, as lewel says, perhaps pressed, I assume for deeper groves something like a profiled shaper blade to finish cut the dowel stock....
A quick search turned up not the slightest hint of how that part was done...