Actually it was originally defined to mean "fearfully-great lizard",
by Richard Owen in 1842. The greek word "deinos", when used as a superlative,
means "fearfully-great" (as used by Homer in The Iliad).
It became simplified over time, as a simple adjective, to mean "terrible".
Dinosaurs are neither terrible nor are they lizards!