He was in Afghanistan because that was where he lived. He'd been taken there by his family when he was nine, six years before he was involved in this fighting in which various people on the sides were killed or wounded.
People move around from country to country for all kinds of reasons, and they normally take their children with them. They don't actually get much say in it generally.