Professional electricians charge an hourly rate because they are trained, licensed and skilled in the work they perform for you.
There is no set hourly rate. Professional electricians set their hourly rate based upon various criteria.
Some electricians might factor a travel charge into their hourly rate.
Always ask if there is a travel charge involved and use that information to help determine which electrical contractor is best for your job. Just be sure that you don’t use a travel charge as your one deciding factor.