Actually, it does both. First, it bruteforces all the links from the index page recursively. This will create a map of discovered content. After this, burpsuite uses different techniques to discover new content such as:
- Brute force using built-in lists of common file and directory names
- Dynamic generation of wordlists based on resource names observed within the target application
- Testing for alternative file extensions on identified resources