Let's look at your sentence: "Goats love new leaves and can climb up trees to reach them."
Your sentence is very good and easy to understand! It is grammatically correct.
Here's why:
- Subject: "Goats" is the subject, meaning who we are talking about.
- Verbs: "love" and "can climb" tell us what goats do.
- Objects: "new leaves" explains what they love, and "them" refers back to the leaves.
So the sentence means that goats enjoy eating new leaves, and they are able to climb trees to reach those leaves.
If you want, you can also say:
- "Goats love new leaves and can climb trees to reach them." (dropping the word "up" is okay here)
But your original sentence is perfectly fine!