Here's why:
* "Years" is a plural noun. It refers to multiple years. Apostrophes are used to indicate possession or contractions, not to make a word plural.
* The sentence is missing an article. The sentence should read: "She has almost 30 years' of experience teaching languages."
The phrase "30 years' experience" is a possessive noun phrase, indicating that the experience belongs to the 30 years.