This will be to notify the opponent (even if it is the computer) that you Pokemon is tightening it's focus. Otherwise it would be a bit unfair if the user couldn't see what move you are using.
EDIT: This is definetly not a glitch I just tried it with my Golurk and I witnessed the same results.