The joke is a pun.  A 'latte' is a type of coffee drink one could get at a coffee shop.  The word 'latte' is similar to 'late', so in the phrase 'late for work' it is replaced with 'latte'.
If you spend too much time in the coffee shop you ' ll be latte for work .