Which directly contradicts the statement in episode 2:
Obi-Wan: "Well if droids could think, there'd be none of us here, would there?"
If we accept Obi-Wan's characterization, then those droids may be able to operate independently, but they aren't actually thinking.
Again, I think a lot of Star Wars media has leaned towards making droids people and not just walking computers with a friendly ui. It's convenient for storytelling because it's easier to write and allows for droid characters to play larger roles and be more relatable to the audience.
But from a world building perspective it creates a lot of unfortunate implications and just makes less sense. The existence of truly intelligent robots should fundamentally alter the world but it never does.