If a channel you can access is the child of a category whose permissions you wouldn't be able to access, the channel is wrongfully omitted.
Here, I set up a server with the same permissions scenario as an actual public server I first encountered this on:

However, in Aerochat you will notice a certain lack of the #g channel:

Going into permissions breakdown with a plugin, these are the conditions to reproduce this:

