You can use a bike at a gym and enjoy the motivation of contact with others. That contact with others may motivate you to stay at a program over a long time. But
Testerect an exercise bike at home is a great plus too. Exercise at any time right at home. Save travel time and expense. Even if you like to work out at a gym, an exercise bike at home is there for days you just can't make it to the gym.