LW and Mastodon are both connected throughout the #Fediverse so they share data.
You can comment on a LW post through Mastodon we ease. Posting an article to LW from Mastodon still has some quirks, but the comments side works. You can also follow LW communities through Mastodon that will populate in your feed.