It's not really spelled out explicitly in Project: Sunflower, but the Black Tide was slowly learning, programming itself from information around it. If it had been the aliens who had put it here, it would have been created with programming already in place, but the Tide had to learn on its own. 