Why did the US compete for colonies during the Spanish American War?

It was the age of American Imperialism.