Unreal Pak Related -- Possible assets in the same directory with same name?

I builded a project as a packaged game and on Exploring that packaged game using a single .pak file showing two instances of the same asset with the same name in the same directory…
both packages contain a single mesh with this name, how does unreal differentiate that?
is this even possible to do? how? or this is something related to memory leak? or a bug or something mystery?