Module versus name in dependency exclusion

Why do we have to specify a module when excluding a dependency i.s.o. a name? This seems inconsistent at first sight.