You cant modify the group an unit belongs to once its on the ship, and you also can not see it in the group. This makes it difficult to keep track of the units and groups and also makes it hard to intuitively know what will happen if you try to for example merge groups that have garrisoned units in them.
It might be better to change how control groups work instead, but this feature would be much easier to implement and adds some QOL.