I think it is a little of both ideas on the subject. For a droid to say "Thank the Maker," is a spiritual thing, and for a droid their creator is about as god-like as they come. Remember though, even though Anakin created C-3P0, 3P0 doesn't remember that who created him since his memory was wiped in episode III.