Price variance between a quart of paint and a gallon of paint are very strange

I needed about a half quart of kilz a couple of months back. Ended up buying a gallon for about twice the price of a quart.
What gets me is the price of an empty gallon paint container is around 8.00 seems high to me.