Lowered compression can cause a spark plug misfire that may come and go, all depending. The lowered compression is not randomly fixing itself now and then; it’s a matter of the plug fouling and then cleaning itself off now and then based on a number of things.
Details about a problem always help but compression is something that I would have checked first thing. The spark plugs are out so kill that bird right then and there.