Q was an all seeing, all knowing, all doing (mischief) human like creature from the "Q continuum". They could do ANYTHING, and the Q in question usually spent his time messing with the Enterprise crew, Picard specifically.
If you’re not Paranoid, You’re not paying attention Be a Sheepdog JYD#105