The elect whips come extra long and coiled up like that. It saves an extra step by not cutting it to length. The disconnect box was probably mounted on the unit at one time but the service person had to remove it to gain access to the controls.

Vent pipe is not a problem.

Obviously the owner doesn't care because there was no permit pulled and the equipment looks like a cheap piece of scratch & dent. A lot of rental apartments are this way and worse. But see the employees of the property managers are exempt from regulation in most states [Linked Image]