There are many things out there to protect your eyes. However, you need to know what you are protecting them from. If you are protecting your eyes from the sun, then you need to use sunglasses. If you are swimming in the pool, then you need to wear goggles. They both protect your eyes, but the difference is for what purpose they are being used.
You would never wear goggles to protect your eyes from the sun because it would be too difficult to see. If you wore sunglasses in the pool, they would fall off your face and probably not keep the water out of your eyes. They would be worthless, and it would be pointless even to wear them in the wrong place.