Could be anything from cramps to strain/sprain to muscle damage to hereditary defects appearing. There is no way to diagnose this without being hands on with the dog. Needless to say, a trip to the vet is in order. Especially as you have no idea of how this occurred.
Last edited by woodmaster81; 05/12/19.