First, it depends on the seahare that you have. Do you have a definitive ID on it? There is a species that has a life span of a few years, and Untamed may have been either smart enough to purposely purchase that species or lucky enough to purchase that species. Most other actual seahares have a natural life span of about a year. There are neurology labs that have kept them alive in captivity for more than 12 months, but that doesn't mean that most people will be able to. There are also other seaslugs that appear to be seahares but are not actually; they may or may not live for more than a year and may or may not breed and lay eggs throughout their lives.
I don't know if research has been done so that anyone can say definitively what cues a seahare to find a mate, breed, and lay eggs, but it appears that certain species seem to congregate to form mating chains or just congregate to facilitate mating -- where the cues are daylength, water temperature, lack or abundance of food, age -- I don't know. It could be that one of these things in your tank triggered your seahare to lay eggs (as infertile eggs are sometimes laid by seaslugs.)
But, more likely, the seahare was collected while in a congregation (as these often occur in shallow water, making collection easy), and the laying has to do with the normal course of events that would have happened in this seahare's life had it stayed in the wild. In the wild, the seahare would have likely already laid many additional egg strands, and may have already died; perhaps the lack of mates in your tank has slowed the process down for your seahare? I don't really know. What I can say is that it is likely that your seahare is nearing the end of its life. I'm sure that the person who originally told you about this just wanted you to inform you of this likely event so it did not catch you unaware (as we often see breeding as the result of the health of our captive animals, not as a death knell.) Enjoy your seahare for each additional day it lives, as they may be gifts.