What is the explanation for the For Loop in the profile Lookup exercise?

Here is the link, but I think he got confused with a switch statement while running an if then statement.

mixing switch code with the if statement
FCC simple answer