The auto-off timer conserves the battery when the speaker is not being used. The speaker switches off when audio has stopped and no buttons have been pressed for three hours.
You can adjust the auto-off feature on your speaker using the Bose Connect app: