I was actually trained in chemistry but I left the field and got into software development for two reasons:
1. By and large, it's a meritocracy. Your degree matters a lot less than the quality of your code.
2. Two people in a garage can still make an impact. Most other technical fields require large teams and big budgets to explore.
A single good developer can make a huge impact and seeing my work make a big difference in the everyday lives of other people is my primary reward. Nothing is more demotivating than being mired in an awkward bureaucracy that resists any change or improvement.