It answers the question they came for.
Visitors ask small, specific things. Are you open. Do you do this. How soon can you fit me in. A contact form makes them wait a day for those answers, so most of them don't bother asking. The chat answers on the spot, in your business's voice, and turns the conversation into a booking or a lead while the person is still on the page.