So what can happen (only after a reset of the board)
- Pin 3 is initially floating and a change is detected; the corresponding flag in the External Interrupt Flag register is set.
- You set the pin to internal pull up.
- You use attachInterrupt to enable the interrupt.
- Because the corresponding flag in the External Interrupt Flag register is set in (1), the ISR is triggered.