Keep competing. After you finish another competition, you get the chance to improve the stud farm, and the bed and breakfast is one of the improvements you can choose at that point.
So it is not a separate purchase or a hidden code, just a reward that appears in the upgrade list once you have the results to unlock it.