Why is a bagel called a bagel?

because some guy said "hey this is a good....." and looked at his pet Beagle and siad "bagel"