A guitar falls to the ground because the force of gravity overpowers all the other forces acting on the guitar.
If the guitar is leaning against another object, then a normal force would also be present. That normal force would be perpendicular to the surface that the guitar is against. If the force of gravity overcomes the static friction of the object on the guitar, then the guitar will fall.