In the affirmative there is a difference in emphasis. "He learned the piano" gives a little more influence to the contribution of the teacher, while "he studied the piano" gives more emphasis to the contribution of the student.
But in the negative we are less certain. Did he study but fail to learn, or was he taught but failed to learn? We don't know.
Student or Learner