Most of the time animals compete for territory or resources. This helps organisms survive because if they run out of resources they'll die. If animals don't compete for territory they'll probably run out of resources. Animals also compete for mating rights. If animals don't mate their species may go extinct.
Migration is an instinctive, seasonal movement of animals. Animals have to migrate due to weather and other factors. Migration is also an inherited trait. Not all animals migrate.