It comes down to how the fat is handled:

Puff pastry: The fat is folded into the dough (laminated). This creates hundreds of thin, flaky layers that rise high in the oven.

Shortcrust: The fat is rubbed or mixed into the flour. This creates a tender, crumbly texture that holds its shape, perfect for pies and tarts.