I can understanmd your confusion and ignorance - but it would only take you a little googling to understand why they used that name.
The Nationalsozialistische Deutsche Arbeiterpartei was formed from the German Worker's Party. Hitler realigned it to ensure that it was anti-socialist, anti-liberal, authoritarian and pro-business. The "socialism" in the name was a strategically chosen misnomer designed to attract working class votes. Hitler regarded trade unions as his primary enemy since a general strike paralysed a right-wing coup in 1920.
In 1933 Hitler and Goering met with a large group of industrialists and declared that democracy and business were incompatible and that the workers needed to be dragged away from socialism. The industrialists then contributed more than two million Reichsmarks to the Nazi election fund, with Goering assuring them that they would jettison democracy to rid Germany of socialism and to smash organised labour.
The far-right Nazis lost no time in outlawing rival parties and by the summer of 1933 more than 100,000 Socialists, Social Democrats, union officials, and other “radicals” had been persecuted and imprisoned.