
This is a very common problem when mixing and it's why you see studios using acoustic treatment on the walls. You may notice that at softer volumes such problems with bass frequencies are less apparent (but so is the bass in general). Also, try listening at a very soft volume and then at a much louder volume. Try some different songs where the guitar and piano sit at different frequencies and see if you hear a difference. So it may be that in your particular room with your particular speakers and positioning, the guitar sounds unnaturally loud or the piano sounds unnaturally soft due to these "room modes" as they are called. Bass problems are particularly common in small rooms (ex. These reflections can sometimes cause problems like standing waves where the dimensions of your room can cause an increase in volume at a certain frequency and the cancellation of a frequency at another. You're hearing not just the direct sound from the speakers but all the reflections bouncing around the room.

With speakers you need to realize that you are hearing the room too.

He said it could be about "resonances and reflections in the room" and that deserves a closer look. The general reasons why headphones and speakers sound different (stereo separation, construction, openness etc) are already covered in the other answers, but for completeness I'll expand upon something Laurence touched upon.
