Stan Lee's original cameo in Spider-Man (2002) was completely different
He played a street vendor trying to sell Peter Parker sunglasses saying "They wore 'em in the X-Men"
Sam Raimi cut it and replaced it with the scene we know
Sony didn't want to give a shoutout to a rival franchise