This is because most of the military production sites in Ukraine were not used for military purposes before the war, while almost all of Russia was.
Before 2022, Russia had no reason to hide the fact that some places were producing components for military equipment and weapons.
The OPSEC only came with the war.