Because he was being attacked by the dog monster that spits acid and the monster asks if he is the true son of Poseidon he would jump and Percy did.
because the chihuahua monster was chasing him and he was asked if he was a son of Poseidon, to jump.