At the moment it is only relevant for AI ships, as far as I know. When making ships for a custom AI faction, you would save them with certain roles and then set the config up to spawn those roles as part of fleets.
That is dependent on the faction's faction config, I think, but by default they...