A resource block has a type and a local label. Together they form its address, such as lab_server.app. The name argument belongs to the remote object and does not define that address.
Two blocks can have the same name value while still being distinct Terraform resources, although a real provider may reject a duplicate remote name. File names do not determine addresses either: Terraform reads the configuration files in the directory together. Change the requested block and preserve its neighbors. A valid edit to the wrong address can otherwise look convincing in a plan.
lab_server.worker is the address; warehouse is an argument of that resource.