From the Wikipedia....
The 6502 was designed primarily by the same team that had designed the Motorola 6800. After quitting Motorola en-masse, they quickly designed the 6501, a completely new design that was nevertheless pin-compatible with the 6800. Motorola sued immediately, and although today the case would have been dismissed out of hand, the damage to MOS was enough for them to agree to stop producing the 6501.
The result was the "lawsuit-compatible" 6502, differing only by a pinout re-arrangement unusable in a 6800 motherboard; now Motorola was apparently no longer interested.