To succeed you must first improve, to improve you must first practice, to practice you must first learn, and to learn you must first fail.
Failure is the first step in this chain, not the last. The saying runs backward from success: you succeed by improving, improve by practicing, practice by learning, and you learn by failing. Read in the other direction, it describes a path that begins with a stumble. The quote is anonymous, so it has no single author's biography behind it. It does echo a long and familiar line of thought: trial and error as the way people actually learn, and the modern "growth mindset" idea, popularized by psychologist Carol Dweck, that ability is built through effort rather than handed out at birth.
What makes it warm rather than harsh is that it treats mistakes as information. A failed attempt shows you exactly what you don't yet know, which is hard to discover any other way.
Someone learning a new language, for instance, might feel embarrassed to speak with native speakers. Following this idea, they would go ahead and have the clumsy conversation anyway, noting the words they fumbled, and practice those the next day. The awkward moment becomes the lesson plan.