In the Giuoco Piano, why is 4.0-0 currently so popular at top level? [FEN &quot;&quot;]

1.e4 e5 2.Nf3 Nc6 3.Bc4 Bc5 4.O-O

In recent years, the move 4.O-O has taken over from 4.d3 almost entirely -- in my database of TWIC games, if I look at 2750+ games from the last year, I see 4.0-0 70 times and 4.d3 only 5 times. They mostly seem to transpose into the same positions. This seems to be relatively recent and might be a factor behind the recent popularity of 3.Bc4 (related to the question What happened to the Giuoco Pianissimo? , I turned my comments there into this question).
What's the advantage of 4.O-O over 4.d3?
In case it helps, I seem to recall someone asking this elsewhere (maybe on Reddit?) and a helpful answer linked to some well known commentators explaining it (perhaps Svidler and Gustafsson?). I was at work and didn't watch the video, and I've forgotten where I saw it.
I see two reasons why to prefer castling over c3. First reason why I would go for 4.0-0 is that I would like to postpone playing c3 to make lines with d5 riskier. Imagine Marshall Ruy-Lopez, if the pawn was on c2, white would have very easy life, no weakness on d3, Nc3 possibility. And you can always play the c3 later if you like. The second thing may be desire to avoid playing c3 in early phase at all. White players tried to play a4 to create shelter for the bishop on a2, not minding exchange for opponent's bishop, avoiding classical Bb3-c2 plan.