This sentence is actually a sign of the growth of the protagonist's role, so for this role, it is also some changes after he joined the army. For the hero, it is necessary to have this kind of epiphany-like moment, and then let himself know what kind of environment he is in, what needs to be defended and what is more precious to himself.
This is actually a classic line in role-building, because it can reflect the inner world of the hero, which also allows the audience to understand some of his views on the world from the hero's own point of view.