Trivial is perhaps the wrong word for them. A more accurate term might be "inevitable" (in the short-term). The reason why patents exist is to protect inventions which are difficult to come up with and which may not exist without patent protection. Pharmaceuticals are a good example, it takes a lot of research to design a new potential drug and even more painstaking research to prove that it works and is safe, if you can't guarantee some sort of market protection that gives the developer a chance to recoup their R&D costs then it's questionable whether or not you'd have as many new drugs.
But on the other hand, if a patented invention is something that several other folks in the industry would have invented within the next 5 years regardless then patents start to become a drag on progress. It's telling when you see a burst of progress happen after a patent runs out, and that sort of thing happens all the time. The question is how do we strike the right balance. Unfortunately right now there are some very strong forces intent on keeping things very much off balance.