Some brake pads have a “lip” that sticks out on the side closest to the hub. This is caused by uneven wear and you will need to file or sand it down if there is a lip. If you’ve worn your pads down around the lip, then they might get stuck in the rim.