Pharmacology

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