Who said it will be called Windows 10 when it's done? They're starting with their current codebase, which is Windows 10, and are now working to remove any and all legacy code from it that they can, to get to a reduced codebase for a new OS release. Like all projects, it has a codename for now, and when it's done (but right now, "if" it's done sounds a more realistic assertion) it'll certainly not be called Windows 10 anymore.
Just like when Windows XP was developed: they took the Windows NT 4.5 codebase, and started hacking on that until they'd changed enough to make it "Windows NT 5", but it was never released under that name. The underlying version number, however, was kept. So, it'll probably be Windows 11 (or rather, a Windows "something") with an underlying version number like 10.5.x or 11.x.x