It's not like Star Trek is the most consistent over time.
In Voyager, they did tend to treat the Doctor with more care and show that it was a lot of hard work. By extension the other sentient holograms.
In TNG, they absolutely just casually upgraded a run of the mill holodeck NPC to a sentient being with a single supremely vague directive.
