Why is Hitler considered to be right wing when his party was based on socialism?
Because the Nazis were not in any meaningful sense socialist, and were a far-right political movement, as u/kieslowskifan explains here.