ELI5: If swelling helps in the healing process of sprains, why is ibuprofen recommended to treat it?

r/

ELI5: If swelling helps in the healing process of sprains, why is ibuprofen recommended to treat it?