Because the two agents in this game both benefit by inflating titles, without direct perceivable cost.
The CTO/lead gets a better title to inflate their ego and (possibly) future earnings.
The company gives the employee something the employee values but costs the employer nothing.