Probably because of the differences between Linux and Windows GUI subsystems. WSLg uses Wayland to render Linux GUI apps but system tray icons in Linux depend on XEmbed or AppIndicator, which aren’t natively bridged to the Windows system tray.
try launching your app with x11.