رَجُلٌ عَالِمٌ: the second indefinite word can be a direct adjective.
الرَّجُلُ عَالِمٌ: the indefinite ʿālimun is a predicate of a definite noun.
مَرَرْتُ بِرَجُلٍ أَبُوهُ عَالِمٌ: the entire nominal clause is a sentence adjective in genitive position.
Same lexical meaning does not entail the same syntactic analysis.