فَمِنْهُمْ مَنْ طَلَبَ رِزْقًا، وَمِنْهُمْ مَنْ فَتَحَ بَابًا لِلْعِلْمِ.
Some sought livelihood; others opened a door to learning.
The repeated minhum man balances two groups and gives the scene an orderly shape. The wording arranges the portrayal; it does not logically establish that the population has exactly two exhaustive categories.
Opening a door to knowledge pictures access and beginning. Here bāb need not refer to a physical door; context directs the reader to the figurative meaning of entry into learning.