They (municipalities) hire road maintenance firms to do so, or have their own internalised road maintenance departments do so. Sadly, the public won't know whether the people fixing the pothole are qualified to do it, or not. They simply need to hope that the road authority has that in hand.