You're getting old enough to mix the plots of the 1st and 4th movies together. V'ger was the early earth satellite that the enterprise chased down. The probe seeking humpback whales was of alien origin. According to what I remember of the novelization, the aliens had visited earth before recorded history.
I'm not happy I read the novelization of a Star Trek movie, but there we are.