Because the soviet Union and communist china were supporting north Korea indirectly the US was slow to intervene due to the fear of raising tensions with the soviet union.
Remember the soviet union revealed that they too had nuclear weapons in 1949 and the Korean war began in 1950.