Aren't all the variables supposed to be stored in RAM? :?:
They are global variables and stored in memory stack (RAM).
Local (auto) variables, usualy are stored in stack (RAM).
There are some exceptions for mC that do not implement stack control, but always variables are stored in RAM. Only constant values can be stored in ROM.