Because it is a type of energy that doesnt posess any mass (It it shows any mass, then it is definitely due to the influence of gravity). Hence it is not consider as a matter.
3 5 3
To be considered ‘matter’, something must have what is called resting mass and volume. Light is that form of energy which does not have resting mass or volume, so is not considered as a matter.
1 5 1