Compression and stretching are actually caused by the stress on the both. Compression happens on the side of impact and Stretching happens ont he side opposite to that of the impact.
The loss of the hydrogen on one molecule produces a negative charge, which is attracted to the positive charge formed by the loss of the hydroxy group from the other molecule.