Can't understand how covergroup sample works

I read it but I can’t understand how it works.

For example,
Why I sample after that I read the signals from transaction ? look at my code please