Reply To: logic of assigning an id to a forum topic
WordPress creates a unique sequential number for every post, page, custom post type (which bbpress has as forums, topics and replies), every revision of the above, and many other plugins also use this mechanism.
so if a topic is created as 15623 it means there are 15622 pre-existing entries of the above in the database.
replies to topics are associated by another entry in the database giving the post’s ‘parent’
so numbers are entirely irrelevant in the scheme of bbpress.