Most professionals (accountant, lawyers, designers, developers) charge by the hour because that is how it has always been done. Jon Lax has done the research to explain why.
In the early 1900s, an attorney at Boston Legal Aide asked MIT for assistance managing a backlog of cases. The result was the creation of the billable hour for professional services. Jon says it is a playbook designed for the wrong era.