In this old hymn, “It” refers to the Name of Jesus:
Verse 4:
It tells of One whose loving heart Can feel my deepest woe,
Who in each sorrow bears a part, That none can bear below.
Refrain:
O, how I love Jesus, O, how I love Jesus,
O, how I love Jesus, Because He first loved me!