This question verges on a truth that is important. There are traditional explanations, but this isn’t one of them, it it provided for thought.
Leviticus 16 outlines Yom Kippur. It is about ‘sin’, in particular, covering it. Why cover? Because if it’s uncovered, it can be judged, and in the case of the Israelites, it would be. Now here is the pivotal question - and also where this outline breaks from the traditional interpretation. Who judges? That was the what the second goat, the one released, was all about.
The ‘sin’ of the people was ‘put’ onto the goat, and it was released as a ‘sign’ that these ‘sins’ (those for that coming year), where ‘covered’, and therefore could not be ‘judged’. And that sign was for the ‘entity’ that judged, the accuser. Whose was represented by Azazel.
But, you can’t tie this ritual outlined in Leviticus 16 to what is being described in Leviticus 17. While the Israelites were in the wilderness, they were outside of the allocated land set aside for them, so were ‘vulnerable’, or exposed to both other gods (sons of god/Satan) and the associated demons (‘un-housed [no body] spirits.)
It was these ‘spiritual forces’ that sort to oppress the Israelites. They were Gods chosen nation. This identifies them with the ‘seed’ that was prophecied to crush Satan’s head. Hence they were constantly targeted, and needed ‘protection’, via the sacrificial system.