I assume context, just as with this sentence. It couldn't say "the goat salt and eats jumps" - so funny. I agree with the above, such a nutty sentence to begin with.
For the same reason "stalk" means both a part of a plant, and to harrass/sneak after someone, or "ring" means both "to call someone on the phone" and "a band of metal worn on the finger" and "to encircle something. Homonyms (words that are spelt and pronounced the same but have different meanings) occur in pretty much every language. There are plenty more in English and no doubt in Romanian too.