There is a scheme in the pharmacy market for shifting patents to prevent generics from being produced, that scheme would be outlawed if we had the right mix of legislators in Congress (basically fewer people who are dependent on these pharmaceutical companies for campaign funds and PAC support). But the original patents do expire, the trick is convince folks that they don't do what they do as well as the new thing does what it does.See here[2] if you want the boring details.
[1] I've got a bit over a dozen patents that arose out of work I've done for others and ended up becoming very familiar with them, even get the occasional expert witness work when trolls need to be disabused.