I think the idea is that the Empire routinely wipes their memories (this seems to be common practice since the old republic for most people as droids are seen as an appliance you don’t want getting too opinionated or independent). So if the Empire wipes their droids and then programmed with their daily duties…