Behavior like that is almost certainly not normal. Perhaps the bee was attempting to aggressively clean some harmful substance off itself, perhaps something was preventing it from flying normally and it was trying to right itself, perhaps it had been exposed to a neurotoxin of some sort and just wasn't thinking properly anymore. Hopefully the fact that you couldn't find it when you came back means it was all right enough to fly away.
Just this afternoon I was out eating lunch at a park with my family, and I found a carpenter bee female who was struggling on the ground. She was missing one antenna and was acting very defensive, so I got her onto a stick and moved her out of the walkway. It's a rough world out there for bees.