The geometry of BrF5 is square pyramidal.
Here, the lone pair occupies the axial position and hence axial bonds will suffer more repulsion than axial bonds.
Thus, the axial Br—F bond length will be different than equitorial Br—F.
The geometry of PCl5 is triangular pyramidal.
The axial bonds suffer more repulsions than equitorial bonds, so they are larger in bond length.