Ignorance is no excuse, she got the tramadol a controlled drug only available on prescription from a ‘friend’, who had heard about her boyfriends back pain. So she acquired the Tramadol illegally in the UK and then took the tramadol to Egypt, where the medication is outlawed.
With a potential punishment of the death penalty, she got off lightly.