MegaCore ATmega2560 PB7 activation randomly at boot
PB7 is pin 13. That's the traditional LED pin.
The bootloader blinks that LED to indicate it's active.
If you want other behaviour then you will have to compile your own version of the bootloader that doesn't blink the LED.