Why aren't engineers paid by the hour like consultants?

Sometimes, I wonder why engineers cannot be paid by the hour for their services like consultants, lawyers, accountants, even doctors. One reason I can think of is that the engineering outcome (specs) can be easily measured. So, it is hard to screw customers like some management consultants did to their clients. Can someone think of other reasons?

As an engineer, one major problem I see ahead in the engineering field is that the smart people do not want to study engineering. Engineers are underpaid relative to their social contributions. How can we change things to pay engineers more fairly?

Engineers are often contracted for longer times (months - years), where the others are mainly contracted for short times (hours - days).
Short term contracters have more overhead (non paid hours) in general.