A senior dev might ask for a higher salary and the increased productivity (due to experience) might not be required for that role.
If it made sense from a financial pov - I'm sure there wouldn't be an issue...