The training limitations they have, and the lack of time with the players, among other internal factors, means that the national federations do not drop the coach right away in the first problems (even when it is clear that that coach will not give the team anything more ).
National coaches have a hard time. They get so much less time compared to the club coaches. I think national coaches have to stay idle for almost 9 to 10 months a year. And with what little time they get, it's hard to make up strategies around those players. Team chemistry is also a big issue over here. Though they are from the same country, but they get the time on the pitch altogether so less which effects them. That's why if countries don't have some start players, so can win matches with individual performances, it's hard for them to do better.