To understand this, we must take a look at these molecules one by one.
Nitrogen Dioxide[NO2]:

This here is its resonance structure/canonical structure.
NO2 is a molecule in which a Nitrogen is connected with two atoms of Oxygen and its shape is Bent. Total number of valence electrons is 17 with each Oxygen atoms contributing 6 and 5 electrons are from Nitrogen.
According to MOT (Molecular Orbital Theory), NO2 has an unpaired electron in π* (Antibonding) orbital due to which, orbitals of Nitrogen and Oxygen undergo 2p-2p overlap. Meanwhile this unpaired electrons makes our molecule a paramagnetic one.
This unpaired electron in π* (Antibonding) orbital can react with any external electromagnetic radiations and guess what, visible light is also an electromagnetic radiation. The reaction between this unpaired electron and visible light causes electron transition.

When electrons goes to higher energy orbital from
lower energy orbitals some form of energy i.e LIGHT is absorbed, if the electron goes vice-versa then energy (LIGHT) is released.
The presence of unpaired electrons in paramagnetic specie creates molecular orbitals that are partially filled or has unpaired spins.these electrons occupy higher energy orbitals which are more prone to electronic transitions. So, paramagnetic specie are more viable to absorb light at lower frequency as they have longer wavelength.
Hence, NO2 absorbs lower frequency light in the visible region of the spectrum, specifically in the blue-green range.
As a result, NO2 appears reddish-brown in colour.
2.Dinitrogen Tetroxide(N2O4):

This here is its resonance structure/canonical structure.
THIS is a dimer of NO2 consisting of two nitrogens and four oxygens. In this molecule due to dimerisation, the unpaired electrons in the π*(antibonding) orbitals of each NO2 molecule pair up together to form a stable, diamagnetic molecule.
Since it has no unpaired electrons, No interaction with external electromagnetic waves and so, no absorption of light in the visible region. Hence, it appears colourless.