> why would someone toil to create a new algorithm to solve a problem if someone else is just going to steal it in hours
When that happens it shouldn't be forgotten that people (broadly speaking) chose this. AI proponents lit intellectual property on fire out of self-interest.
The technology is powerful enough that it was bound to happen regardless. If it didn't happen here in the US, it would have happened somewhere that IP laws aren't respected.