what causes this on 1990 Subaru Legacy

why is my 1990 subaru legacy wagon ls randomly reving to 5000rpm as i drive.

1 answer
SEEK A FREE INSP FROM AAMCO SOUND LIKE TRANS ISSUE