Why hydrogen bonding in some acids make them a stronger acid when it is present even before deprotonation?
Some of the conformers of salicylic acid are given below, all of which are conformers planar in configuration.$\mathrm{^{[1]}}$


Although the compound can adopt several conformations the first conformer(in the first image, the structure on the left) is of the lowest energy and has a strong intramolecular hydrogen bond. The second conformer(first image, right structure) is the conformer with the second lowest energy as described in the published paper as given below:

The molecule can adopt several conformations, although only one of them is highly populated and was assigned in IR experiments. The spectrum was recorded by Fiedler et al., $\mathrm{^{[2]}}$ in tetrachloride solution and indicated a strong intramolecular H-bond. The deviation of the OH
−1
stretching frequency from that in phenol was 395 cm . The theoretically calculated deviation is
359 cm−1 at the B3LYP/6-311+G(d,p) level. The lowest-energy conformer is planar, the phenolic OH is a H-bond donor to the carbonyl oxygen of the syn carboxylic group. The =O...H distance and the =O...H–O bond angle were calculated at 176 pm and 145°, respectively. The second-most-stable conformer is higher in energy by 14.3 kJ/mol, where the phenolic OH is the H-bond donor to the syn carboxylic OH. Similar conclusions were drawn by Yahagi et al.,$\mathrm{^{[3]}}$ by interpreting the gas-phase IR frequencies of the phenolic OH.

Much more convincing is the fact that the lowest energy conformer has a fractional population distribution$\mathrm{^*}$ of nearly 99.7% which further supports the argument regarding the higher acidity of salicylic acid in comparison to its para isomer. The higher acidity of the compound thus is contributed by the first conformer. The lesser interaction of the carboxyl group’s acidic proton and the stability of the conjugate base due to hydrogen bonding thus increases the acidity of the compound. Regarding detailed mechanism of acidity of salicylic acid you may refer this and this post in chemistry SE. You may further note that the other structures might have decreased the acidity of the compound if their population distributions would have been higher. The same has been mentioned in the published paper as given below:

In a former calculation by Nagy et al.$\mathrm{^{[4]}}$, the two conformers above were found also to be the most stable with MP2/6-31G*//HF/6-31G* energy separation of 13.7 kJ/mol and free energy difference of 12.1 kJ/mol at T = 298 K. All other conformers are much higher in free energy, supporting the estimate of Fiedler that the population of the lowest-energy form is 99.7%.


Notes and References

Nagy, Peter. Competing Intramolecular vs. Intermolecular Hydrogen Bonds in Solution. Int. J. Mol. Sci. 2014, DOI: 10.3390/ijms151119562
Fiedler, P.; Böhm, S.; Kulhánek, J.; Exner, O. Acidity of ortho-substituted benzoic acids: An infrared and theoretical study of the intramolecular hydrogen bonds. Org. Biomol. Chem. 2006, 4, 2003–2011. DOI: https://doi.org/10.1039/B601875K
Yahagi, T.; Fujii, A.; Ebata, T.; Mikam, N. Infrared spectroscopy of the OH stretching vibrations of jet-cooled salicylic acid and its dimer in S0 and S1. J. Phys. Chem. A 2001, 105, 10673–10680. DOI: https://doi.org/10.1021/jp0126199
Nagy, P.I.; Dunn, W.J, III.; Alagona, G.; Ghio, C. Theoretical studies of the 2- and 4-hydroxybenzoic acids with competing hydrogen bonds in the gas phase and aqueous solution. J. Phys. Chem. 1993, 97, 4628–4642. DOI: https://doi.org/10.1039/B601875K
$\mathrm{*}$ Note that here fractional population distribution refers to the population of each conformer in the compound. You may find more information about it on the Wikipedia article.