It is important for the crew to know whats going on. In the extreme, you could have had a very serious very contagious illness that would warrant the flight diverting and the passengers being quarantined. There are "air doctors" that the pilot can speak to over the radio to give assistance with identifying illnesses and giving first aid treatment