'Against ' has other meanings as well, but in the sense you are referring to, it means 'in physical contact with.' A bicycle could lean against a house. I can lean against the front of the house, but it can also lean against the side of the house or lean against the back of the house.
If the bicycle is in front of the house, it might be leaning against the front of the house. It might also be in front of the house, but not against the house. 'The bicycle is in the street in front of the house."