Babbel interview question

Why would you use dependency injection?