Doctors protect doctor's interests. Lawyers aren't idiots, they're professionals who run businesses with the express intent to make money.
Software engineers seem to be just bright enough to make money, and just stupid enough to say, no no, please I'd prefer to be homeless, please take my job and automate me, offshore me, and devalue my salary out of existence all at once.