Linear search algorithm n-1 doubt

Why do we have n-1 in the for loop. What does it mean.