Baron was a title that existed historically on Earth.
The character Christien de Neuvillette from the play Cyrano de Bergerac was a baron. (TNG: "The Nth Degree")
In the 23rd century, Harry Mudd's father-in-law Grimes was also a baron. (DIS: "Magic to Make the Sanest Man Go Mad")