They didn’t, the association with Rome comes from this painting. The author didn’t have anything to believe it was historically correct.
It is correct though that Italian fascists had a hard on on everything that was classical Rome-adjacent and they picked the salute from a French painting like a bunch of noobs.
So the nazi salute is the equivalent to the naruto run of their time.