means that
the old humorous expression describes someone regarded as eccentric or irrational; it is not a medical description.
When someone who is a bit mad or their behaviour is somehow eccentric., the saying “To have rats in the attic” is appropriate.