I spent last evening at our local bike Co-op diagnosing several folks bikes who had rear shifting problems. All of them had scrapes on or grass/dirt embedded in their rear derailleurs. Sure enough, all of the derailleur hangers were bent. One had a pretzelized rear derailleur.
Never rest your bike on the drive side. Never drop your bike on the drive side.