Are "a" and "ab" both "from?"
Yes. A simplified explanation: a before consonants, ab before vowels and 'h'.
Why is it "urbe" instead of "urbem"?
ab here takes the ablative (urbe) opposed to the accusative (urbem).
This is so hard