Dates help loosen your bowels so you probably caused a bit of overactivity in your bowels which is why you had some pain. After you got rid of them, you no longer would have pain - which is why the pain has since gone away.
It most probably had nothing to do with your pregnancy so don't worry!