I'm an anesthesiologist. Two years ago I switched to doing 100% software engineering. I had already worked in software, but not full time. There were many reasons. More time with my family was a big one. Work not being intellectually challenging was a another.