It is the swelling of a bag (bursa), this is responsible for cushioning muscles, tendons and bones. When it is inflamed, it causes a lot of pain.