You need two things before you can buy one: a two-star stable rating and 1,000 credits. Reach both and the breeding barn becomes available for purchase.