Solve starts with /s/ sound and when a prefix *re-* is added to it, it is pronounced with /z/ sound. Why does it happen?

Solve -> /sɒlv/

Resolve -> /rɪˈzɒlv/