Offering 21 Modaks to Lord Ganesha is a tradition linked to a myth where Lord Shiva belched 21 times after Ganesha was satisfied.