The government heavily revised and reinterpreted patent law many times in favor of software companies starting in the 80s. Otherwise hardware companies would have the only real moat since, as you say, software is relatively cheap and fast to produce.
reply