How would the FA actually know if an illness was contagious? Also, another person's medical history is none of your business. It's private information.
If I heard an FA discuss my medical condition (not that I currently have one, but) they would be getting spoken to by the company very seriously.
Also. since this seems like a genuine reason to be moved by the FA why not seek to get a better seat/s?