Why is the sky blue?
The blue color of the sky is due to Rayleigh scattering. As light moves through the atmosphere, most of the longer wavelengths pass straight through. Little of the red, orange and yellow light is affected by the air.
However, much of the shorter wavelength light is absorbed by the gas molecules. The absorbed blue light is then radiated in different directions. It gets scattered all around the sky. Whichever direction you look, some of this scattered blue light reaches you. Since you see the blue light from everywhere overhead, the sky looks blue.
Now on to your primary question. There are two types of treaties: Research and Economic. Every civ gets one of each. If you choose to gift/trade/sell a treaty to another civ, they will receive 10% of your research/economic output. This costs you nothing. It is 'found money', as it were.
These treaties do indeed strengthen relations. Only allied civs have closer ties.