TL;DR Writing shopware code and using the configuration? Make sure to always pass a salesChannelId to get the correct value.
A little background about this fact-
https://winkelwagen.de/2024/04/11/shopware-configuration-does-not-default-to-current-sales-channel/