Well, it could be because the manga and anime are created by different teams. Each team might have their own interpretation of the story and characters, leading to differences. Also, the anime might need to make changes to fit the time slot and keep the audience interested.
The main reason is that the anime might have to adapt to scheduling and production constraints. Sometimes, they might take creative liberties to extend or modify the story for better pacing or viewer engagement.