Why do software patents exist?
The reason most commonly given is that patents and software patents are meant to encourage innovation. They prevent competition from using the inventor’s ideas and coming out with identical products and/or services that would eat into the inventor’s market share. If the competition desires to use the invention they must license the patent use from the original inventor.