Originally used to say "you left the door open", based on the fact that
farms don’t have
doors to be shut because there outside.
More recently, it has been used to simply indicate that a person is ignorant or uneducated as if they were brought up on
a farm.
"it's really cold outside and you left
the door open! were you
born on a farm?”