Anxiety in dogs can be triggered by separation from their owners, loud noises like fireworks or thunder, change of environment, or routine. Other factors include past trauma, lack of socialization, or genetic predisposition.