Everyone knows wrestling is scripted as well, even when I was a kid I knew, but it didn't take away from the story they were trying to tell or what the wrestlers put themselves through
It's because they try to sell it as real that makes it work because you do get more emotionally invested in what's going on.
Terms like sell/no sell, kayfabe, heel, and face are common in the community. Storytelling elements that work to make things seem as real as possible to get people as invested as possible.