You can do this, but it wouldn't tell you much. I could imagine you might be interested in predicting environmental conditions from animal behavior if it was cheap to observe the behavior and expensive to measure the environment (e.g., using a canary in a coal mine), in which case it might make sense to model the environmental condition using the animal behavior. You wouldn't know the baseline prevalence of the environmental conditions, however, so you wouldn't be able to predict its specific value from the measured behavior of animals in the wild, making the model close to useless.
In science, though, we are often interested in causal relationships, which are associations that have specific properties (temporal precedence, no confounding, etc.). The odds ratio for the relationship between the environmental condition and animal behavior is a measure of association that is free of confounding, but it doesn't represent the temporal precedence of the relationship. The animal's behavior does not cause changes in the environment (or if it does, that is not the relationship you are investigating), so the odds ratio has no causal interpretation and doesn't tell you anything about how the environment would change if you forced changes in an animal's behavior or how the animal's behavior would change if you forced changes in the environment (like you did in the experiment). So this odds ratio would tell you nothing of interest.
The causal parameter of interest is likely the difference in the means of the animal's behavior between the environmental conditions. This parameter has a causal interpretation because it can be identified as the typical change in the animal's behavior that occurs when the environment is intervened upon (i.e., changed by a force external to the animal). This parameter is useful for science because it helps explain animal behavior, which the odds ratio in the previous model does not.
Finally, the second regression, with A predicting B, makes no sense at all because A and B are independent if manipulated separately by the experimenter, so the coefficient on A tells you absolutely nothing. In fact, the coefficient will likely be spuriously nonzero due to collider bias and should not be interpreted (see Elwert & Winship, 2014, for an explanation of this).
One interesting tidbit is the finding that if two groups are normally distributed with the same variance, the parameters in the logistic regression model predicting group membership from the continuous variable can be directly computed from the means and variances, implying a specific mathematical connection between the difference in means and the odds ratio. This was described here in a very clean and clear derivation and is worth a look.
->
mean your title and text? Please make this question clearer and we will be able to help you better. $\endgroup$