You either were behind, or you induced a bluff from someone who would otherwise fold to a significant bet, so either way you played good.