The short answer
A lead magnet is a piece of content or a resource (a guide, a template, a discount, a checklist) offered free in exchange for contact information, usually an email address. It exists to convert a passive follower into someone a business can reach directly, the same goal that makes building an email list from social media worthwhile in the first place.
Specific and useful beats generic and vague
A lead magnet that solves one specific problem, a template or a checklist for a defined task, converts better than a vague "free guide" with no immediate value. The exchange has to feel fair from the visitor's side: a real email address for something worth having, not a token gesture.
Where it fits into a social media strategy
A lead magnet is usually the offer sitting behind a link-in-bio page's email signup. It is the concrete reason a visitor hands over an email address, rather than a generic "sign up for updates" with nothing tangible attached. The lead magnet is the offer; the link-in-bio page or landing page is where the exchange happens.