The Giants were considered a threat to the gods and their rule over the Nine Realms. Odin and Thor saw them as enemies and declared war on them.