Some pieces are better positioned in different places at different times. Especially in closed, maneuvering positions, it doesn't matter as much that you move the same piece twice as it can't be exploited. The knight serves one role on c6 at the start. It defends the pawn and covers d4. As the situation has changed, it doesn't need to be there and can be relocated to serve another role.
In this case it allows c5 to be played and Bb7 when it doesn't block the bishop's diagonal.
If black were to immediately play d6-Nd7 then it would be the Philidor and this allows white other options to adapt to black's move order.
White has also spent moves on the bishop. On b5, it threatened to capture the knight and win e5, in some scenarios, so black had to adapt their setup to that scenario. When black kicks the bishop with a6-b5, it is repositioned to a different diagonal. This is often the same diagonal as the Italian bishop. The advantage of this move order is that black can no longer play d5 with tempo on the bishop and white has provoked pawn pushes on the queenside which may become weaknesses.
As I am targeting rating 1500, very recently I started some learning about openings. I saw a Ruy Lopez line, which seems to be called "Breyer Variation", that surprised me:
The black's move 9...Nb8, in my first impression, was "it's just retreating the knight to the original b8 square". I read that the intention is to do move like 10...Nd7 which is a more active square. However, the knight is moving b8 -> c6 -> b8, finally moving nothing and just wasting 2 out of 9 moves. Even considering 10...Nd7, the knight is spending precious 3 moves just to move from b8 to d7.
It's weird that similar thing happens in other openings, like Italian Game: Knight Attack, Ulvestad Variation that the only good move for white is 6. Bf1!, going back to square one. Some questions arise: