Because some foreign powers were not nations as we understand them today.
This is known as the compact clause.
You can research it all day long, and you will not find one source that agrees with what you are saying.
Think about it, you are insisting that the word “State” has two definitions within the same sentence.
“No state shall.....with another state....”