Pilocarpine is an antimuscarinic drug. There are M3 receptors located on the pupil responsible to constrict the pupils (miosis ) and also causing cyclospasm.
As pilocarpine is administered ,it is a pharmacologic antagonist of the muscarinic receptor , it results in mydriasis (dilation of pupils ) and cycloplegia ( inability to accommodate ) resulting in blurred vision.
Hence it is one of the side effects of pilocarpine.