In that context, "to" is short for "into".
Water turns
into steam when you boil it.
Water turns (in)
to ice when you freeze it.
Note, "to" isn't always synonymous with "into". "turn into" means, to change shape/form, character, even direction:
[1] He turned into a vampire. (change shape/form)
[2] He turned into a mean person. (change character)
[3] Turn into this parking lot. (change direction)
"turn to" means, look to, rely on:
[1] They always
turn to me for help. (look to, rely on)
Hope that helps.
