Pope Pius XII addressed a variety of athletes and sports leaders on November 8, 1952. In the address, he gives details on the proper balance of athletic competitions, stressing the need to not neglect the health of mind, body, or soul.
Pius XII believed the key to correct performance of gymnastics and sports is to be fueled by God and his divine commandments. The commandments have a way of "protecting" us and our health.
All of this is very relevant, especially with the withdrawal of Catholic athlete, Simone Biles, who wanted to preserve her mental health.
Sports can be an inspiration to virtue, but it must first be focused on what truly matters in life.