Understanding the relation between thermal Sunyaev-Zeldovich decrement and halo mass using the Simba and TNG simulations