Question: why do acs have to be in a window?
Answer: Air conditioning works by moving heat from one place (like inside your house) to somewhere else (outside your house). Thats why it is necessary to have the condensor coil part of the machine hanging outside your window aside from the fact that it is also going to produce a ton of condensation.