What is usually the cause of very painful upper back?

Many possibilities. Severe pain to the upper back can be due to many causes. Some are serious, such as heart, lung, nerve or esphagus issues; and some are less serious, such as muscle, cartilage and bone issues. Best to see your doctor to narrow the possibilities.