They are removed.
A retreat moves all of your ships that have a move value, and those ships may transport fighters and ground forces up to their capacity. Any of your fighters and ground forces in the space area of the active system that are unable to move or be transported are removed, which is not the same as being destroyed.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.