The beans are cooked earlier in a pressure cooker because the boiling point decreases with increasing pressure. As the pressure increases the particles come closer and due to their Kinetic energy and temperature inside the container increases and thus the boiling point decreases which lead to faster cooking.