Aging affects the musculoskeletal system by causing a decrease in the number and size of muscle fibers, leading to sarcopenia (loss of muscle mass). The bone density also decreases due to a reduction in osteoblast activity and an increase in osteoclast activity, increasing the risk of fractures and osteoporosis.