Rebar in concrete can rust because when exposed to moisture and oxygen, even through small cracks or imperfections in the concrete, the steel rebar undergoes a chemical reaction called corrosion, leading to the formation of rust, especially if chloride ions (like from salt) are present, which can significantly accelerate the process; this is why proper concrete cover over the rebar is crucial to prevent rusting.