Capgemini interview question

Why do you migrate Windows Job to Azure Function?