Plenty of options out there for extremely secure ways to add a bottle cage the bike. 2Fish, and Minion both come to mind. But if you are not willing to spend any money on it then it is a moot point.
I always use a hydration backpack for mountain biking. Works great. A very convenient way to drink.
But I use bottles and cages on the road/gravel bikes. I usually just stop to drink.