It has to be reset with the proper tool. It was probably a used car dealership that didnt replace the sensor and they probably installed a lifetime pads

Also you may have worn rear pads too. And if you install aftermarket sensor the light may not go away.