smallcase interview question

Why to use `key` when returning UI elements by looping over an array?