The following contains spoilers for Black Panther. You have been warned.
Fans who stayed through the credits of Black Panther have been treated to a cool cameo, but many fans were likely expecting that moment to come much earlier, as part of the main story. Black Panther director Ryan Coogler explains that bringing that character into the fight in Wakanda wouldn't make sense, as he clearly wouldn't be mentally ready to jump into a fight after being successfully deprogrammed. According to Coogler...
That was something that was always in there. It was a Shuri thing, because you know in our world we kind of figured that Bucky Barnes would be her assignment. We kind of drop the hint at that when they bring Ross in and she's like, 'Oh another one.' So, we dropped hints in there, but the idea for that, what we kind of decided, we decided was that her cracking his mental code, if Shuri's as smart as she is, that wouldn't really be a big problem. But Bucky would have horrible PTSD, he would need spiritual guidance.
With Black Panther being the last Marvel movie before Avengers; Infinity War, many of us expected this movie to set the stage for the big team up with lots of references and set-up, and with the end of Captain America: Civil War showing us that the Winter Soldier was in Wakanda, he seemed like the most obvious Marvel character to appear. The main film, however, only makes a passing reference to him as a "broken white boy" but in the closing credits, we see Bucky Barnes with Shuri, having been apparently successfully rehabilitated. However, we also see that he's not quite 100%. Ryan Coogler tells the Empire Film Podcast that it only made sense for Bucky to be in this state, so sending him to help in the fight in Black Panther just wouldn't work.
However, it turns out that's not the only reason Bucky Barnes was kept out of the main Black Panther story. Ryan Coogler also points out that there's a potential problem with the on-screen visual if the Winter Soldier opens fire during the climactic battle.
The last thing he would need to do is like jump into that Civil War, and so that was kind of the thought process there. And it could be potentially problematic, you know what I mean, if it's a bunch of Africans fighting and you bring in a white dude, he comes in shootin' people like that. We were obviously aware of that. Bucky's not trained to like neutralize people peacefully, he's an assassin. We were like, 'I don't know if we can do that.'
Yeah, that could have been awkward.
Black Panther's self-contained nature is part of what makes the movie so strong, so it's probably a good thing that it didn't get bogged down in Infinity War setup. It's not like it's really necessary. We're all going to see Infinity War regardless of how much we know going in. Besides, at this point, everybody who cares always sits through the credits of a Marvel movie, so the final scene isn't exactly hidden.