Why are there different numbers of ways to do these two tasks?

The first question is a permutation problem while the second is a combination problem.