Why some materials are lost in build and need "Use with instanced static mesh" to work?

Hello, sometimes random materials are missing in my build (World Grid Material) and when I set it to “Use with instanced static meshes” it works. Why doesn’t it happen on all my materials or similar materials? Thank you