This trigonometric ratio states the ratio between the hypotenuse and the adjacent side to a certain angle. It gives no indication about the lengths of the sides.
When the adjacent side and hypotenuse lengths change for a given angle, if their ratio stays the same then the secant, too, would stay the same. Also note that the secant of θ is the reciprocal of the cosine of θ.