Of course we could turn that around completely and ask why the US created the F-22 if the JSF is in fact qualatively superior to everything already in service.
And we might ask why the US created the F-16 which was, from the get go, not intended to be superior to aircraft the US already had...