It is created when outputting the HTMl.
Each link is a combination of a text part, which in this caase represents the thread title, and a link part, which in thi scase consists of the page: Showthread.php and a record to display: threadid=...
The showthread page then loads the information of that record from the database, and displays it.