Pharmacology

A patient complains of muscle weakness. It was reversed on administration of neostigmine,because ?