The beans are cooked earlier in a pressure cooker because the boiling point increases 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 increases which leads to faster cooking.