How did Nintendo create Super Paper Mario Pit of 100 Trials music?

Nintendo used Open the Eyes of My Heart, because it has the same music as Pit of 100 Trails, here is the Open the Eyes of My Heart lyrics, but use Super Paper Mario Pit of 100 Trials music.

Open the eyes of my heart, Lord
Open the eyes of my heart
I want to see You
I want to see You

Open the eyes of my heart, Lord
Open the eyes of my heart
I want to see You
I want to see You

To see You high and lifted up
Shinin' in the light of Your glory
Pour out Your power and love
As we sing holy, holy, holy

To see You high and lifted up
Shinin' in the light of Your glory
Pour out Your power and love
As we sing holy, holy, holy