Onions and shallots are both members of the allium family, but shallots grow in smaller bunches and pack less of a flavor punch. Since shallots are smaller, they're helpful for small-batch recipes like this one. You'll be able to cut and use exactly the amount you need without cutting a whole onion (and potentially wasting half of it).