It is because to balance atmosphere pressure. You see as the height increases then the inner part of the ear decrease. So to balance eustachian tube inside the ear let's some air out from the mouth and if we keep chewing the chocolate then more air goes out.