> The Original Series had come from hostility between the US and the USSR during the Cold War, Wright sought an equivalent relevant to the US of the era he was living in, the 1980s. There was meanwhile a palpable feeling that the nation's financial sector was essentially full of greedy barbarians, a notion Wright transplanted into the futuristic science-fiction setting of The Next Generation. (Star Trek: The Next Generation 365, p. 36) Rob Bowman offered, "The Ferengi sprung from the stereotype of agents and lawyers being cutthroat, greedy and wanting only money." (Cinefantastique, Vol. 21, No. 2, p. 35) Wright thus conceived the Ferengi as a species of profit-obsessed, ruthless aliens. He was especially fond of the contrast between them and the crew of the Enterprise-D, who had no desire or need for money. (Star Trek: The Next Generation 365, p. 36)
* https://memory-alpha.fandom.com/wiki/Ferengi#Origins
Things got tweaked over time of course.