Exactly; and the crucial intermediate step in there is the moisture causing the steel to oxidize, the iron oxide increasing the volume of the rebar, and thus putting the concrete in tension from the inside, and since concrete really sucks in tension (but is great in compression), the concrete cracks.
I'm mystified that iron-based rebar is even still allowed in construction, when fiberglass-based rebar is readily available and proven to work better.