Not quite understanding the benefits of MQTT Discovery for custom devices

I restarted HA and re-sent the config discovery and the light pulls in now with the correct state and brightness controls. However, now I have this sensor that showed up showing as unavailable. Where did this come from?