Functionality within Teams and Outlook can automatically update your status, depending on your activity (or presence).  

Here's a guide to help you understand what each of the statuses mean;