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