A light-rated junction box is only made to hold the weight of a light fixture, while a fan-rated junction box is made to hold the heavier weight of a ceiling fan.