Why does Physics material mask work in Editor but not in the build?

Why does Physics material mask work in Editor but not in the build?