The intro to every single episode tells that whole story. Anyone who's watched the show even once would know the answer.Oscar was divorced and living in an apartment.
Felix's wife threw him out over his annoying habits.
The two had been acquaintances and agreed to try living together.
Hilarity ensued.
Oscar was bad with money and he had a gambling habit