Other countries are our competitors. Their governments are working for their own citizens not the citizens of other countries.
Sometimes governments and businesses have alliances and associations due to common interests. They become allied together.
They still are not friends and they are still trying to get everything for the groups that they represent.
So the UK, Poland, Australia are great friends of the USA but they also actively are competing on trade and for influence.