That’s because Mudblood is a magic user born from a Muggle family. A different term from Muggle itself. Pretty sure Muggle is an accepted term in the overall society (it’s used in the Ministry’s Department name for example), except from a few ‘activists’ you might hear of.
I believe there’s someone like that in Hogwarts Legacy as well.