Because it's fun.
Oh, there are plenty of secondary reasons, including monetary gain, feeling of satisfaction at seeing a program work, and happiness at solving users' problems.
But the bottom line is, I love it for the same reason that kids play with the cardboard box at Christmas. Because it's fun.