The word "bun" in the context of hairstyles is believed to be related to the Middle English word "bunne," which referred to a type of rolled or coiled cake or bread. Think of a cinnamon bun! The hairstyle probably got its name because of its similar round, coiled shape.
So, while the visual connection to a bunny's tail is there, the etymology points to a culinary origin.