“At-talāmīdhu ḥawla l-muʿallimi ka-n-nujūmi ḥawla l-qamar” compares an arrangement of students around a teacher with stars surrounding the moon. It is not simply one student likened to one star.
The point of similarity is the composite configuration: a central figure surrounded by many associated figures. This makes the illustration useful for understanding representational comparison (tashbīh tamthīl). Listing isolated noun pairs misses the governing image.