Münchausen syndrome
A related mental illness is Münchausen syndrome by proxy. People with this condition abuse another person, usually a child, in order to get sympathy or attention for themselves.  For example, a parent might make their own child sick in order to get attention and sympathy from friends and medical professionals.