Children who have been looked after by a Local Authority may not get a National Insurance number automatically as child benefit may not have been claimed for them.
HMRC have published guidance for social workers on obtaining a National Insurance number for 'looked after' child. The guidance is available on the HMRC website.