Is this on purpose(EGL_PLATFORM defaulting to x11)?

I was investigating a recurring crash on Firefox that happens within Nvidia drivers on Wayland and noticed it using libnvidia-egl-xlib.so.1which is strange since Firefox was running with Wayland support.

Investigating libEGL_nvidia.so.570.124.04 I found that if EGL_PLATFORM isn’t set but DISPLAY is set, it defaults to X11. Since DISPLAY is always set for compatibility with X11 apps on Wayland, the Wayland backend is never used in Wayland unless EGL_PLATFORM is set to nvwsi.

Is this on purpose or a mistake?