This happens because you have "normalize weight " set to " Interactive " so whenever you paint zero skin weights it gets transferred to nearby joint. The easiest way to fix this is instead of painting zero with that leg joint paint a 100 % with the joint in that problem area like hip or back leg accordingly.
If its not clear for you then let me know.
Happy Rigging