The long tails were originally designed to keep the shirt tucked in and looking nice and neat.

The tails should not show under the kilt.

There was actually a kilt shirt designed with long tails which did not show under the bottom edge.