Not. Giving a small amount of free food (called "a tapa") when you buy a drink in a bar is part of the tradition. If is served without asking for it is a free appetizer.
Some Spanish king was concerned about the accidents of drunk people while riding or traveling at chariot between villages, and required that the vine served to travelers include some food to mitigate the alcoholic effect. To obey the new law, innkeepers started to put a slice of bread over the vine jars, like a lid covering it. The Spanish word for lid is "Tapa"; so you have your drink, and "the lid". This only applies to a bar/restaurant context.
You can order one or several tapas of "X" with your drink but in that case is an extra. You'll be served a bigger amount (or a more elaborated mouthful) of the product that you asked for, and is expected that you pay for it. (Same if you order a ration or a half ration of X).
Is not obligatory to eat it. If you are a vegan or have food allergies, just explain it politely and they will remove the offending dish, and probably bring you a more appropriate replacement if they have one.