He may had an assignment where there was little social interaction. Remma the episode where Geordi fell for that woman who lived aboard some kind of relay station with only one other person. Perhaps Data had an assignment like that for some time.
He also may have been assigned to an area of a ship, outpost, starbase, facility where he didn't get to socialize much.
But again, he must have done something to catch Picard's eye.