Many wallets are HD wallets. This means that keys are created using a process that is both hierarchical and deterministic. Hence H.D. Therefore address generation is deterministic. Meaning that the sequence of addresses is not random, although you cannot tell by inspection of the generated addresses. The address generated is determined by the seed number and the derivation path. Hence, wallets with same seed and derivation path produce the same sequence of addresses.
See BIP-32
When you install a wallet it will choose a random seed unless you specify one somehow - perhaps using a seed phrase or by otherwise setting the seed number and hence the master private key.