Lemme tell you about BADD and how it affected the lore and the development of D&D.
In 1982, a young teenager and D&D enthusiast named Irving Lee Pulling committed suicide. While his peers could see he was struggling with his mental health at school, his mother Patricia Pulling blamed D&D:
' [D&D is] a fantasy role-playing game which uses demonology, witchcraft, voodoo, murder, rape, blasphemy, suicide, assassination, insanity, sex perversion, homosexuality, prostitution, satanic type rituals, gambling, barbarism, cannibalism, sadism, desecration, demon summoning, necromantics, divination and other teachings."
To be fair, the only thing on her list not often featured in D&D was voodoo. To be absolutely unfair to her, OD&D was essentially a fictional math game made by nerds who wanted to do one-on-one combat rather than war games and needed set dressing.
Considering how Ms. Pulling wanted to sue the school for the curse that D&D placed on her son and her conservative Christian beilefs, one can assume her poor son had an awful home life.
Instead of taking a moment to explore her guilt and how she might have contributed to her son's death, Pauling founded Bothered About Dungeons and Dragons (BADD) in 1983 and D&D got caught up in the Satanic Panic of the 1980s. For the next several years, D&D suffered under mainstream backlash with even respected news organizations dragging a game made by bored math nerds over the goals.
In 1989, TSR pulled demons, daemons, and devils out of D&D nearly entirely until 1993-1994. They focused on focusing on more common threats, fantastical elements, jumping straight to evil deities, or creating settings that avoided topics like this all together. If you're wondering why the culture of DnD made good and evil more black and white, this was the reason. It impacted how stories were written, how grandiose evil had to fail, and gaming lore still reflects this to this day.
In 1994, Planescape setting was introduced and they brought fiends back. While still avoiding the 'd-words', the fiends were reintroduced as the baatezu (devils), the tanar'ri (demons), and the yugoloths (daemons). TSR writers did an amazing dance in world building despite the remnants of Satanic Panic through self censorship.
By avoiding the name brand fiends, TSR was able to develop the hordes of fiends into three unique cultures. Baatezu were a horrific combination of Feudalism and Authoritarian with a dash of colonialism, the tanar'ri were a nightmare of Randian and bomb throwing Anarchists, and the yugoloths were an insidious mix of manipulators and warmongers for profit. Under Planescape, all these fiends would focus on each other more in the Blood Wars as their primary goals.
The Blood Wars were essentially an eons long battle between the baatezu and the tanar'ri over... no one is really sure and lore has decided to keep it a mystery. Meanwhile the yugoloths fight for both sides with egging each side on, often claiming they're the ones that started it. However, no one trusts yugoloths and their take of history and in a meta sense, they were the most boring. The baatezu and tanar'ri had a more soap operatic feel between them in contrast to the more 'mundane' yugoloths.
All of this, of course, was meant to make the collection of human souls a secondary matter to fiends.
In 1997, when WotC acquired D&D, they methodically brought back the old terminology of devils, demons, and daemons. By 5e, the terms of baatezu and tanar'ri were phased out entirely. Meanwhile, Yugoloths retained their 2e names, likely for newcomers to the games not to get daemons confused with demons. The Blood War would be focused until 4e when Asmodeus ended it until... everyone in the real world hated 4e and it's change or lore, and 5e brought it back as apart of the culture of demons and devils.
While later editions have some world building to fiends, it was never on the level of 2e, making devils and demons a little bit more... boring. After all, you don't want to make people scared about fictional stories, yet again.
“The Great 1980s Dungeons & Dragons Panic.” BBC News, April 11, 2014.
https://www.bbc.com/news/magazine-26328105.