Cvent interview question

Flatten Object using array reduce method , why arrow functions are used?