When viruses, bacteria and other pathogens enter the body, they act as pyrogenic sources leading to fever, when fever symptoms may occur, and the pathogens release bradykinin, prostacyclin, etc. leading to general weakness muscle and joint aches.
However, it is important to note that this symptom may also occur with strenuous exercise and rheumatoid arthritis.