Another possibility is a bent derailleur hanger.
Stand your bike up perfectly vertically and shift into a gear combination that makes your derailleur arm point straight down. Then look at the derailleur from the back. If the derailleur arm looks like it's pointing toward the rear tire even a little, that's your problem.