BPF for packet capture predates BPF for system instrumentation, and libpcap itself is under the hood an elaborate, optimizing BPF compiler.
"Then in 2013, Alexei Starovoitov completely reshaped it, started to add new functionalities and to improve the performances of BPF. This new version is designated as eBPF (for “extended BPF”), while the former becomes cBPF (“classic” BPF). New features such as maps and tail calls appeared. The JIT machines were rewritten. The new language is even closer to native machine language than cBPF was. And also, new attach points in the kernel have been created." [1]
[1]: https://qmonnet.github.io/whirl-offload/2016/09/01/dive-into...