A space unit is any unit capable of operations in space (shocker, I know).
Spacecraft are assigned at least one, but possibly multiple roles at design-time, which define what sets of orders a given ship can carry out. This also informs AI/automation on how to use them (a dedicated freighter shouldn't be used to intercept other units, for example).