So how did Syria build this massive stockpile without the world knowing?
Their stockpile has been widely known and commented on publicly for decades. Nobody did anything about it.