"I struck you and all the products of your toil with blight and with mildew and with hail, yet you did not turn to me, declares the LORD." ~ Haggai 2:17

It is an interesting paradox (meaning "a seeming contradiction that, when properly understood, may prove to be true" - GotQuestions.org) that in all of His goodness God sometimes uses negative outcomes to draw people to Himself.

Like failed crops.
Like diminished grape harvests.
Like meager oil harvests.
And all with the specific purpose that His people would "turn to Me".

Not because God is arrogant. Oh no, just the opposite. Because God is the LORD, the Maker of heaven and earth and the sustainer of all that is.

And He disciplines those He loves toward loving faith so that His holiness might ultimately come to them...
...in love...
...through Jesus Christ.