Why wasn’t the Koscielny goal for Arsenal against Burnley offside?

Was it just a referees mistake or is there a ruling I’m not aware of?

Please comment below on the Laurent Koscielny goal if you know anymore