They're not.
Median lawyer rates are more like $200-300/h, with variations depending on locality--a lawyer in NYC is going to be much more expensive than a lawyer in middle-of-nowhere, Kentucky.
As for why they're expensive, part of the answer is because legal training (i.e., law school) is expensive, and lawyers have to pay their student debt.