Slack flips you to Away after a stretch of no activity in the Slack window, so if you work mostly in another app it thinks you are idle. Click your profile picture and set availability to Active manually, that pins it. If it keeps happening on desktop, avoid leaving Slack fully minimised for long stretches, or just force Active and it stays.
Slack flips you to Away when it thinks the app lost focus or your machine slept. Set your status to Active manually from your avatar, and check a second Slack session on your phone is not pulling your presence the other way.
Slack flips you to Away after a stretch of no activity in the Slack window, so if you work mostly in another app it thinks you are idle. Click your profile picture and set availability to Active manually, that pins it. If it keeps happening on desktop, avoid leaving Slack fully minimised for long stretches, or just force Active and it stays.