In all fairness to Raytheon, Patriot is incredibly good at what it does. The problem isn't the platform, the problem is that what it does is shoot down $80m combat aircraft. When that's your target, $1-5M a shot is cheap. And Patriot is deadly accurate. Ukraine has used it to basically neutralize the Russian airforce.
The fault here is with US Military command, who point blank refused to take drones seriously while everyone else was working overtime to adapt to them. Ukraine actually offered to partner with the US on training and technology specifically to intercept shahed drones and the US turned them down.
Now, we can only speculate as to why that is, and it's certainly possible that arms industry lobbyists wanted to avoid Ukrainian defence companies gaining any share of the US market. But that would only be speculation. I suspect it has far more to do with American arrogance; "What can little Ukraine teach us about war?"