Rims can get straighten bent bicycle rim out of shape from hitting a big pothole, by getting twisted when you try to wedge your bike in or out of a rack and when a spoke breaks. When the bend in the rim is large enough, it will hit your brake pad every time it goes around, causing the characteristic “thwp” or “ksh” sound, and slowing you down.