I’m guessing friction of the wheels and the floor help stop it, or the friction of the brake and the wheels cause the wheel to stop moving thus stopping the bike
Brake applied->brake stops wheels from turning->wheels and the floor cause friction and stop the bike
I’m probably wrong but trying to help