Netscape (codenamed Mozilla) was ahead of its time and was considered to be the gold standard. Other browsers started their UA strings with Mozilla to indicate their compatibility, because web servers did not recognize their names. It has become a convention ever since.