I think that's a bug, if that's what's really happening.
You can discover another civ by moving your ship next to it's area of influence - that is, be in a space right next to one which they have influence over.
Being a couple of spaces away and merely being able to see the other civ's planet doesn't count as "contact".