Can someone explain why I get bilateral knee swelling after steroid injections in my ribs and/or shoulder?

This has happened three times over the past several months and one orthopedic is saying I have arthritis of the knees!

is there a blood test I should have to figure this out and if so what test. 

Thank you for the help.