Mpox had been spreading mostly undetected for years in Nigeria and elsewhere before the disease prompted the 2022 outbreak in more than 70 countries.