The verb "pick" has multiple meanings. Most often it means "choose" or "collect", but one other meaning is similar to the primary meaning of "peck." The verb "peck" usually describes a bird striking something with its beak, or it can also describe a person suing a sharp tool to strike something.
They both also share one other less frequently used meaning. If you eat something really slowly in very small bites, it can be described as "picking at" or "pecking at" your food.