Usually the Animator component gets added by default when you first start creating an animation and a Animator Controller gets created as well but these can be created manually. When they are created automatically it’ll assign the Animator Controller to the Animator component. You probably forgot to add the Animator Controller to the Animator component.