The fact is, it's just bad business not to patent software as a defensive measure against competition, at least when you make enough money for the people with patents to sue you first. This doesn't mean anyone likes being in that position: I think some of them, at least, would appreciate being able to implement competing technologies without licensing them.