Materials from an attached file become part of the current one

Greetings,

If I have a file (1) and attach another (2) to it, as a worksession, the materials from (2) show up in Material Editor as regular materials, and if I detach they remain as part of file 1.

Is this normal?
(because it creates a lot of mess)