Back then the US and China were still suspicious of each other even though they had established diplomatic relations. That's why the US gave the islands to Japan, which was and still is a US ally, instead of giving them back to China.