Ways are how a machine's axes slide. The two approaches — hardened box ways and linear (rail) guides — trade rigidity against speed, and it's a core clue to what a machine was built for.
Box Ways
Large flat sliding surfaces with lots of contact area. They damp vibration and resist heavy cutting loads, so they're preferred on big, hard-cutting machines. The cost is more friction and slower rapids.
Linear Guides
Recirculating bearing blocks on rails — low friction, fast rapids, good accuracy. Standard on most modern machining centers where speed and cycle time matter more than maximum damping.
Bottom line
Box ways for heavy, rigid cutting and big machines; linear guides for speed, agility and finish. Neither is 'better' — it's what the machine is optimized to do.