Why A 2 3 4 5 is a straight?

why A 2 3 4 5 is a straight? does A only count as after K?

if yes, is this straight the smallest straight?

Yes, A can be high or low in a straight. A - 5 is the smallest straight. No “wraparound” straights allowed (QKA23, for example).