Analysing two perpendicular wires carrying equal current:
When one wire is kept fixed and the other one is free to move, initially, only a torque acts on the free wire which tends to make the wires parallel in a way the two wires carry current in the same direction.
As it starts to slightly rotate, attractive forces between the wires start to appear and as the angle between these two wires decrease, this force increases and becomes maximum when both wires become coplanar.