You can be free and open source and run afoul of software patents. You can infringe on a patent completely by accident. It's not like copyright where you have to prove an intent to copy. The worst thing about patents is that independent discovery is not a defense against infringement.