IT probably just grew slower than the others for whatever reason...and then flowering was induced so that's what you got. You said it was in the same pot as another? The other plant was probably the dominant one in competition with your "mini-me"
...just my educated guess.

I once started an outdoor grow right into flowering season and it pretty much did the same thing...it stayed about 6''-7'' and flowered.