They were neutral until the German Submarines reoccurred. Germany attacking their port fit into their interest to co-exist with the US. The US made them sign a contract, for the benefit of themselves since the sugar business was a big profit. It was the Platt amendment that truly screwed them over.