There's a heating element built into the cabinet of most hot tubs. This heats the water passing through it to the required temperature, before being circulated into the hot tub itself. A small number of more traditional hot tubs use wood-fired heating.