Some dogs have an overbite or under-bite that makes it difficult for them to keep their tongue in their mouth because their teeth don't line up properly.
This is also not true hanging tongue syndrome.
For some dogs, leaving the tongue sticking out of their mouth is just a sign of complete relaxation.