Weight Painting was using mask if "Selection Mask" in Sculpt Mode is turned on. This can be quite confusing because the option to turn it off is not available in Weight Painting and the selection is also not visible. Now the mask is not checked in weight paint mode.