Nigeria is #1 / #2 wealthiest country in Africa (GDP). It ranks amoung the highest in terms of advanced degree graduates in Africa. But it has a extremely low Human Development Index, there isn't much opportunity for the educated. Nigerians outside of Nigeria will generally be better educated than the local workforce but unable find work for various reasons. Common issue in Europe, where many 419 scams actually operate from.
This is a case of smart people taking advantage of the less intelligent / informed.