I want to explain harmonic mean with the help of a example.
Suppose you covered a particular distance at 30kmph and 40kmph for one hour each. Then 35kmph is the arithmetic average/mean of speed. But if you drive for 10 files at 30kmph and 40kmph, then the harmonic mean will be 34.3mph.
In the same way, Precision and recall both have true positives in the numerator and different denominators. If you average their reciprocals, then the harmonic mean will help.
In simple terms, harmonic mean decomposes extreme values more.
If you consider a trivial method (e.g. always returning class A). There are many data elements of class B and a single element of class A:
Precision: 0.0
Recall: 1.0
When taking the arithmetic mean, it would have 50% correct. Despite being the worst possible outcome. With the harmonic mean, the F1-measure is 0.
Arithmetic mean: 0.5
Harmonic mean: 0.0
In other words, to have a high F1, you need to both have high precision and recall.
Hope this answer helps.