No separate purchase is required. The beta came bundled with Halo 3: ODST.
Owners of ODST simply put the disc in, and the main menu displayed a Halo: Reach beta entry at the bottom. Selecting it was all that was needed — no code buying, no additional fee.
You did need to be signed in to Xbox Live, since the beta was delivered online rather than from the disc itself. An internet connection was therefore mandatory even for players who owned the game physically.
In short: buy ODST, connect, and the beta was yours.