Why can Rheumatism affect heart valves?

Yes. This article will help clarify: http://www.arthritis.org/living-with-arthritis/comorbidities/heart-disease/ra-and-your-heart.php.
Inflammation of bone. which includes the valves of the heart. Also there is inflammation in the blood which contacts the valves.