Microsoft teams automatically change the status of your account based on your activity. However, you can always set the account status manually. To set a new status, you need to click on your profile picture > Click on your current status > Select a new status.