Apple CEO Tim Cook told shareholders at a meeting that the company may make a significant contribution in health care.