Why is there amber in the coal seam?

Amber often appears in coal seams, and some amber also has small insects, which is unimaginable.

It turned out that in the Paleozoic era, there were many insects in the lush forest. When a strong wind breaks a branch, a drop of resin will flow from the broken part of the branch. If the dripping resin happens to stick to a bug, the continued dripping resin will firmly wrap the bug in it. When the earth's crust sinks, the resin will be buried underground with the trees. With the passage of time, trees turn into coal, while the dripping resin turns into transparent minerals, and insects are quietly wrapped in the middle. This is the amber we see.