it's both, but location plays a bit role, just go to the gitlab salary calculator and try to enter london and another east europe city.
even for the same level role and expertise and assumed same productivity the east europe one will get a smaller compensation, thus costing the company less.