Rheumatoid arthritis primarily affects the musculoskeletal system, leading to pain, swelling, and disability throughout the body, impacting connective tissues.