Because pain results when the buildup of fluid leads to swelling, and the swollen tissues push against sensitive nerve endings. Other biochemical processes also occur during inflammation. They affect how nerves behave, and this can contribute to pain.