Corticosteroids work by suppressing the immune system and thereby reducing inflammation. When injected directly into the affected area, they help to decrease swelling, pain, and redness. This localized approach allows for a higher concentration of the medication to reach the site of inflammation compared to oral medications.