The role of physical therapy in nerve compression involves exercises performed by a physical therapist to strengthen and support muscles, aiming to reduce pressure on the nerves.