The roots of the word "piracy" come from the ancient Greek πειράομαι, or peiráomai, meaning "attempt;" i.e., an attempt to rob for personal gain.
In the early days of maritime navigation, most trade vessels hugged the coasts.