Pergunta de entrevista da empresa IBIZ SOFTWARE

Why used Factory for writing logic in Angularjs rather than Controller?