God corrects those He loves. It’s a truth in life.
Proverbs 3:
11My child, don’t reject the Lord’s discipline,
and don’t be upset when he corrects you.
12 For the Lord corrects those he loves,
just as a father corrects a child in whom he delights.