Kanon Gaming interview question

Why using key when we map array?