Strong and weak acid
Looking at the structures of those two acids might help. In both cases, the acidic hydrogens are part of hydroxyl groups. Because of polarity and the inductive effect, the O-H bond is weaker than C-H bonds which are very strong. As a result, it's nearly impossible for Carbon to lose a hydrogen without some kind of elimination reaction, whereas the O-H bond can autoprotolyze with other O-H bonds (even water). The weakness of the O-H bond is the basis for the acidity of those hydrogens. C-H bonds are essentially non-acidic, having pKa values around 45-50.