Location History must be on.
Check the devices that influence location History: https://support.google.com/maps/thread/4927130/location-sharing-says-my-husband-is-offline?hl=en&msgid=8363848