The fish swam by and the line snagged your lure.
I've seen a few instances where someone caught a fish by the line that was already attached to the fish.
Not common but it does happen oddly enough.
Shame that the other end untied, but seeing that you caught the other end it kind of looks like someone needs to recheck and retied their line to their spools....(speaking from experience)