There was a belief that if you drank water containing frogspawn, the frogs would grow inside your body. People believed that sore throats and coughing could be caused by the frogs trying to escape from your stomach through your throat. のどにかえるが詰まっているとは、おもしろい表現ですね。