It's not for me but I have a friend who spends hours doing this very thing.
In the end he gets off more doing this than the real thing.
I guess that it can be understood in terms of sex principally being mental stimulation rather than physical for some people.
For me it is all about seeing, feeling, tasting & smelling ie a sensual experience rather than a cerebral one