It could be bad dreams. She could also perhaps be having little growing pains or teeth just starting, not enough to wake her up fully yet?
At 4mths it's like they wake up from being a newborn if that makes sense. Alot more interaction and noticing things around them. Getting into a routine of sorts. So it could be dreaming of all this.