The cube is not expected to be lit in the given repro project.
URP has the concept of a (global) main light. In the supplied project the blue light has highest intensity and will therefore be the main light.
The cube lives on a rendering layer not affected by that main light and so if light layers are enabled and additional lights (in this case the red light) are disabled, the cube does not receive any lighting.