It's cockroach-specific poisons. The building management probably deployed one of the new ones. They're incredibly effective compared to the older style, as much as 500x better.
The problem with cockroaches is that they'll eat a small amount of something, throw it up, and then avoid it. Even if you just barely kill one, it'll just die, and its hundreds of children will replace it.
Modern poisons are tasteless, odourless, and aren't directly poisonous, so the cockroach doesn't feel bad and doesn't throw up. It can't learn to avoid it. These chemicals are designed to be converted into a poison by an enzyme in the body of the cockroach, slowly. This means that the chemical is basically harmless to pets, humans, and other animals, but lethal to this one insect species. It also allows the roach to consume hundreds of times a lethal dose before starting to succumb to the effects. When it does eventually throw up and die, any other roaches that consume the vomit (I know, eww, but apparently this happens) are eating the precursor, not the poison, and once again can easily consume many times the lethal dose. This has a multiplying effect on the efficacy, as roaches will often throw up and die in their nest, poisoning their entire brood.
As anecdotal evidence: I had WiFi and 4G in my previous apartment, but roaches everywhere. I deployed the roach bait gel, and they vanished. My new apartment has 1 bar of mobile reception, but there are no roaches anywhere because here the building management gets an exterminator to put out roach poison gel.
That's probably why you've seen the roaches disappear: the marvels of modern chemistry, not physics!