Step-by-step explanation:
there are 2 factors :
1. distance : the farther away the dimmer the star appears, even if it is actually brighter than the sun.
2. the basic size and brightness of the other star. as the sum is a medium-sized star, it means that there are also many stars that are smaller and/or dimmer than our sun.