They’ve probably gotten a bit of a fright. If your cat suddenly arches its back and scurries away, chances are that it has heard or seen something that gave them a little scare. Hence the famous “Halloween cat” silhouette is associated with the spooky holiday.  You’ll probably find them cautiously returning to the scene to inspect whatever is there properly.