Not always, if rebars are pre-tensioned before concrete solidifies. So the rebar is always under tension. Pretty common in prefab parts, like bridge bars.
And while you absolutely have pretensioned girders on bridges commonly, the bridge decks generally aren't, although they're almost always completely in compression and the steel is there for shrinkage cracks etc.
[1] https://www.youtube.com/watch?v=UOHURuAf5iY&list=PLTZM4MrZKf...
The rebar handles tensile loads, the concrete handles compressive loads. You put the rebar where tension will exist so that it can handle that. Some amount of cracking on non-pretensioned concrete is normal and unavoidable.