It was actually attached; when the towers collapsed, they took a chunk of building 7 with them. Then the fire damaged it past the point it could support itself.
===============================================
But it was not visibly on fire, there was little or no Jet fuel in Building 7, and it would be more logical if the building collapsed at an angle facing where it was connected.
Instead, it all seems to have collapsed evenly on all four corners.