To buy is to purchase. As a preposition, by means next to. Bye is a farewell or a free pass into the next round when used in a sports context.