Bernoulli's equation results from concept of conservation of energy. Precisely the sum of pressure , kinetic energy per unit volume and potential energy per unit volume is constant.

Provided the fluid in consideration is non viscous and non compressible.