It may be that there was too little exercise before, and the muscles couldn't react at once. It is good to exercise regularly, but it is also good to practice more. If you practice dancing, you should exercise properly, not too hard. If you teach yourself to dance, you must practice in the right way and watch more dance teaching videos.
If conditions permit, it is suggested to sign up for a dance training class and receive the correct guidance from a professional dance teacher, so that if there are problems in the training process, you can get timely guidance to avoid problems such as muscle strain in self-taught dance.