The type of wood which is used in body and neck and fretboard (also called fingerboard) can be very different.
By pulling the strings of your guitar you are sending vibrations from the string through the fretboard, neck and the body of the guitar. From there your pickups will send it to your amplifier.
The wood "transports" the vibrations of the strings. The type of wood will affect the tonal characteristics. Thats why a guitar can sound so different with another type of wood.