Judy is 16 years old and collapses on the gym floor with severe pain in her chest wall every time she takes a deep breath. She is rushed by ambulance to the emergency room. Judy is diagnosed with pleurisy and is given an anti-inflammatory drug through the intravenous route. Explain why an anti-inflammatory drug would be prescribed for someone with pleurisy.