Obviously, "bottoms up" refers to drinking, and usually is applied to alcohol.
The origin of this old saying is obscure, but there is a popular legend about it, though it is likely only folk etymology.
Where Did That Come From?- Bottoms up!