because other people are dealt cards also and there is the chance you dont have 6 outs to hit your pair on flop since they could be dealt to someone else. take into consideration this, do the math for 6outs/5outs/.../1outs/0outs, then combine these probabilities and do again the math for the 7 situations and you'll find the chance is ~26%.