Magnets are materials that produces magnetic field. These magnets have poles, the north and south poles. Charge materials are materials with uneven number of electrons (or protons) in a system. For example, when you brush your hair with a comb, the electrons will transfer from your hair onto the comb. The comb now will become a charged object.
There are alike in terms of their attraction properties. Magnets will attract other magnetic objects of different poles and repel when they both have the same poles. Meaning, the north pole of the magnet is attracted to the south pole of the other magnet. Similarly with the charged comb which is negatively charged, it can “attract” other materials that have a net positive charge.