Terrible came through French from Latin terribilis, built on terrere, to frighten. English preserves the terrifying sense and also uses terrible for a much broader judgment that something is very bad.
The fear-inducing sense still exists. The broader negative judgment adds to the range instead of replacing it completely.
Source
Merriam-Webster: terribleThe first-known-use citation points to causing intense fear, and terribilis derives from terrēre, to frighten.