So are the brain waves the cause or the effect?

Are beta waves a sign that my mind is racing and wide awake, or are they the reason?

Don't know but as AI advances, questions like that may get easier to answer.