Even more, if everybody had to have the goal to arrive "something better" at some time in the future, most projects wouldn't get started. It's super valid to do something for your own edification and learning purposes.
Another good motivation is to explore new ways to try to write the same (or even less functional) thing but in a better way.