Apparent magnitude means how bright a star APPEARS to us on Earth. It can be affected by ...
... how bright the star really is
... how far the star is from us
... how much gas and dust is between us
... how much of the star's total output is in visible light