>>23442849
>Realistically no hospital patient would still be allowed to have his gun on his body. They remove all that equipment.
It wasn't Io's gun. Cornelius (very conveniently) placed it on Io's nightstand after poisoning him. Dialogue hints that he was going to shoot himself after doing the deed, but it's still a contrivance.