because you look away for one second and they just grow half a meter tall.
Were they bolting? Bolting occurs when the plant is getting ready to flower, usually in response to high temperatures.
If you see your basil plant beginning to bolt, give it a trim. Otherwise it'll turn bitter. The link provided has more information about when and how to trim it to keep bolting under wraps.