Let's clear this up: "Burrito" is the diminutive of "burro" (donkey) in Spanish. So yes, literally: burro = donkey → burrito = little donkey.
The culinary "burrito" (flour tortilla wrapped around fillings) borrowed the word metaphorically. Leading theories:
burro (donkey) → burrito (little donkey, literal) → burrito (the food, metaphorical extension)
This pattern—animal name → object resemblance → food term—is common: "hot dog," "pigs in a blanket," "ants on a log." The donkey connection is real; it's just one step removed from the plate.