Why do we like magic when we know it’s a trick?

Magic is being examined by scientists wanting to understand how it plays with our perception.