Coupling of pinned magnetic moments in an antiferromagnet to a ferromagnet and its role for exchange bias