Nobody use BAT anymore, Baidu has been a 2nd tier company for at least 5 years and nobody refer it in the acronyms. The top 5 are Alibaba, Tencent, Ant Financial, ByteDance, Meituan or PDD
Web search is not very profitable ever since the so-called "mobile age". A large percentage of mobile-only users have stopped relying on search, they reach to WeChat or just 100 different specific apps instead. Baidu was in desperate for growing or even keeping its ads revenue then, and they did something really bad which triggered a PR storm [1], making things worse.
Also, around 2016-2017 most of my engineer friends who are great at their job left Baidu for, surprise, ByteDance.
Google is still relevant because it controls Android and Chrome. Baidu never gets lucky in building that and be a dominant player. This makes it very passive in the mobile internet market competition.