Question d’entretien chez Morgan Stanley

Why hashcode is used in HasMap?