Resignation doesn't count as win?

Why does the resigning not count as a win. I understand some people do it as a quick exit but I think in some cases there is no reason to go on. I’ve one won by resignation but on my profile it doesn’t count as a win?

The Won, Lost, and Draws statistics on your profile only counts ranked games that are not annulled (for ending too early). Unranked wins are still wins, they just don’t affect your rating or win-loss statistics.

Thank you for the clarification