Searching arrays

Hi everyone, can someone explain why we put (return i) instead of (return target).

Because i is the index target is located at. If it is located.

Okay thank you for clearing that out for me