Against two connected pawns the bishop blockades one and the king blocks the other. The pawns cannot both advance without one of them falling.
Two connected pawns supported by their king look dangerous, but a bishop plus a king near the pawns is normally enough to hold. The idea is a division of labour: the king stands in front of one pawn and the bishop controls the advance square of the other.