Pins 0 and 1 belong to the hardware serial port. When you do Serial.begin(), it starts using the pins.