Mirrorless cameras work differently as the process of taking a photo does not flip a mirror up and down as it does in a DSLR. Most mirrorless cameras have a mechanical shutter that reveals the sensor and an electronic shutter that digitally replicates this movement.
So while there’s still a shutter, it has less demand upon it, and as a result, mirrorless cameras often last longer than DSLRs.