That was mostly because both times they expected the locals to want their "liberating" them. When that wasn't the case things went badly.