LATA = 5
replaces the entire contents of lata latch with 5

LATA.0 = 5

is a syntax error a bit can only be 0 or 1

lata.0 is bit 0 of the lata latch