What does retired mean in tennis?

A retirement counts as a completed match for both players' records, unlike a walkover. The score at the moment of stopping is kept, for example 6–3, 2–1 ret.

Questions

Does a retirement count as a loss?

Yes. The match counts, and the player who retired is recorded as losing it.