Sony actually had the merchandising rights to Spider-man for a while, not just movies. In hindsight, Sony regretted doing it considering how much the Spider-man IP was worth not just the films, but they didn't really think ahead and were strapped for cash last generation when their electronics divisions were struggling; so off to Marvel it was sold back.
Think about all the money Disney/Marvel has made with the merchandising rights with Spider-man.... Sony must be really kicking themselves in the pants, lol.
Marvel paid a pittance for a prince.