Visa Inc. interview question

Why do we need hibernate or JPA?