Borrowed from French bavard.
Most likely first loaned in the South, then spread to/borrowed by other dialects.
ba hoa